@@ -13,7 +13,7 @@ public class ContractByInterfaceTests
1313 [ Test ]
1414 public void Prefer_interfaces_should_work_on_top_level_object_using_extension_method ( )
1515 {
16- using ( JsConfig . With ( preferInterfaces : true ) )
16+ using ( JsConfig . With ( new Config { PreferInterfaces = true } ) )
1717 {
1818 var json = new Concrete ( "boo" , 1 ) . ToJson ( ) ;
1919
@@ -24,7 +24,7 @@ public void Prefer_interfaces_should_work_on_top_level_object_using_extension_me
2424 [ Test ]
2525 public void Should_be_able_to_serialise_based_on_an_interface ( )
2626 {
27- using ( JsConfig . With ( preferInterfaces : true ) )
27+ using ( JsConfig . With ( new Config { PreferInterfaces = true } ) )
2828 {
2929 IContract myConcrete = new Concrete ( "boo" , 1 ) ;
3030 var json = JsonSerializer . SerializeToString ( myConcrete , typeof ( IContract ) ) ;
@@ -37,7 +37,7 @@ public void Should_be_able_to_serialise_based_on_an_interface()
3737 [ Test ]
3838 public void Should_not_use_interface_type_if_concrete_specified ( )
3939 {
40- using ( JsConfig . With ( preferInterfaces : false ) )
40+ using ( JsConfig . With ( new Config { PreferInterfaces = false } ) )
4141 {
4242 IContract myConcrete = new Concrete ( "boo" , 1 ) ;
4343 var json = JsonSerializer . SerializeToString ( myConcrete , typeof ( IContract ) ) ;
@@ -50,7 +50,7 @@ public void Should_not_use_interface_type_if_concrete_specified()
5050 [ Test ]
5151 public void Should_be_able_to_deserialise_based_on_an_interface_with_no_concrete ( )
5252 {
53- using ( JsConfig . With ( preferInterfaces : true ) )
53+ using ( JsConfig . With ( new Config { PreferInterfaces = true } ) )
5454 {
5555 var json = new Concrete ( "boo" , 42 ) . ToJson ( ) ;
5656
0 commit comments