Пример #1
0
 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) })));
 }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #4
0
        public SerializationOrderTests()
        {
            FakeTypeToSerialize.Reset();
            FakeSerializer1.Reset();
            FakeSerializer2.Reset();
            var config = new ClientConfiguration()
            {
                SerializationProviders =
                {
                    typeof(FakeSerializer1).GetTypeInfo(),
                    typeof(FakeSerializer2).GetTypeInfo()
                }
            };

            this.environment = SerializationTestEnvironment.InitializeWithDefaults(config);
        }