@@ -6,68 +6,68 @@ namespace Schema.NET.Benchmarks.Core;
66public class BookBenchmark : SchemaBenchmarkBase
77{
88 public override Thing InitialiseThing ( ) =>
9- new Book ( )
9+ new Book
1010 {
1111 Id = new Uri ( "https://example.com/book/1" ) ,
1212 Name = "The Catcher in the Rye" ,
13- Author = new Person ( )
13+ Author = new Person
1414 {
1515 Name = "J.D. Salinger" ,
1616 } ,
1717 Url = new Uri ( "https://www.barnesandnoble.com/store/info/offer/JDSalinger" ) ,
18- WorkExample = new List < ICreativeWork > ( )
18+ WorkExample = new List < ICreativeWork ? >
1919 {
20- new Book ( )
20+ new Book
2121 {
2222 Isbn = "031676948" ,
2323 BookEdition = "2nd Edition" ,
2424 BookFormat = BookFormatType . Hardcover ,
25- PotentialAction = new ReadAction ( )
25+ PotentialAction = new ReadAction
2626 {
27- Target = new EntryPoint ( )
27+ Target = new EntryPoint
2828 {
2929 UrlTemplate = "https://www.barnesandnoble.com/store/info/offer/0316769487?purchase=true" ,
30- ActionPlatform = new List < Uri > ( )
30+ ActionPlatform = new List < Uri ? >
3131 {
3232 new Uri ( "https://schema.org/DesktopWebPlatform" ) ,
3333 new Uri ( "https://schema.org/IOSPlatform" ) ,
3434 new Uri ( "https://schema.org/AndroidPlatform" ) ,
3535 } ,
3636 } ,
37- ExpectsAcceptanceOf = new Offer ( )
37+ ExpectsAcceptanceOf = new Offer
3838 {
3939 Price = 6.99M ,
4040 PriceCurrency = "USD" ,
41- EligibleRegion = new Country ( )
41+ EligibleRegion = new Country
4242 {
4343 Name = "US" ,
4444 } ,
4545 Availability = ItemAvailability . InStock ,
4646 } ,
4747 } ,
4848 } ,
49- new Book ( )
49+ new Book
5050 {
5151 Isbn = "031676947" ,
5252 BookEdition = "1st Edition" ,
5353 BookFormat = BookFormatType . EBook ,
54- PotentialAction = new ReadAction ( )
54+ PotentialAction = new ReadAction
5555 {
56- Target = new EntryPoint ( )
56+ Target = new EntryPoint
5757 {
5858 UrlTemplate = "https://www.barnesandnoble.com/store/info/offer/031676947?purchase=true" ,
59- ActionPlatform = new List < Uri > ( )
59+ ActionPlatform = new List < Uri ? >
6060 {
6161 new Uri ( "https://schema.org/DesktopWebPlatform" ) ,
6262 new Uri ( "https://schema.org/IOSPlatform" ) ,
6363 new Uri ( "https://schema.org/AndroidPlatform" ) ,
6464 } ,
6565 } ,
66- ExpectsAcceptanceOf = new Offer ( )
66+ ExpectsAcceptanceOf = new Offer
6767 {
6868 Price = 1.99M ,
6969 PriceCurrency = "USD" ,
70- EligibleRegion = new Country ( )
70+ EligibleRegion = new Country
7171 {
7272 Name = "UK" ,
7373 } ,
0 commit comments