Exemple #1
0
        public void SerializationConfiguration()
        {
            ITaskProcessorSerializationConfiguration configuration = AppConfigConfigurationUnitTests.GetSerializationtConfiguration("Serialization");

            Assert.AreEqual(typeof(EntityBinarySerializer), configuration.GetSerializerType(typeof(FakeTask)));
            Assert.AreEqual(typeof(EntityXmlSerializer), configuration.GetSerializerType(typeof(ITask)));
            Assert.AreEqual(typeof(EntityBinaryXmlSerializer), configuration.GetSerializerType(typeof(object)));

            Assert.IsNull(configuration.GetSerializerType(typeof(FakePollingQueueTask)));
        }
Exemple #2
0
        public void SerializationConfigurationGetSerializerTypeNull()
        {
            ITaskProcessorSerializationConfiguration configuration = AppConfigConfigurationUnitTests.GetSerializationtConfiguration("Serialization");

            configuration.GetSerializerType(null);
        }