Beispiel #1
0
        public void Serializers_CanBeOverridden()
        {
            var mgr = new SerializationManager();

            mgr.AddSerializer(new MockSerializer());

            var serializer = mgr.GetSerializer(ContentTypes.Json, Encoding.UTF8.WebName);

            serializer.Should().BeOfType <MockSerializer>();
        }