public SerializationOrderTests() { FakeTypeToSerialize.Reset(); FakeSerializer1.Reset(); FakeSerializer2.Reset(); this.environment = SerializationTestEnvironment.InitializeWithDefaults( builder => builder.Configure <SerializationProviderOptions>( options => options.SerializationProviders.AddRange(new[] { typeof(FakeSerializer1), typeof(FakeSerializer2) }))); }
public SerializationOrderTests() { FakeTypeToSerialize.Reset(); FakeSerializer1.Reset(); FakeSerializer2.Reset(); SerializationTestEnvironment.Initialize(new List <TypeInfo> { typeof(FakeSerializer1).GetTypeInfo(), typeof(FakeSerializer2).GetTypeInfo() }, null); SerializationManager.Register(typeof(FakeTypeToSerialize), typeof(FakeTypeToSerialize)); }
public SerializationOrderTests() { FakeTypeToSerialize.Reset(); FakeSerializer1.Reset(); FakeSerializer2.Reset(); SerializationManager.InitializeForTesting( new List <TypeInfo> { typeof(FakeSerializer1).GetTypeInfo(), typeof(FakeSerializer2).GetTypeInfo() }); SerializationManager.Register(typeof(FakeTypeToSerialize), typeof(FakeTypeToSerialize)); }
public SerializationOrderTests() { FakeTypeToSerialize.Reset(); FakeSerializer1.Reset(); FakeSerializer2.Reset(); var config = new ClientConfiguration() { SerializationProviders = { typeof(FakeSerializer1).GetTypeInfo(), typeof(FakeSerializer2).GetTypeInfo() } }; this.environment = SerializationTestEnvironment.InitializeWithDefaults(config); }