public void Return_Excepted_Desirializer_If_Custom_Registred()
        {
            var mock = new Mock <IDeserializer>();

            mock.Setup(deserializer => deserializer.ContentType)
            .Returns("xml");

            var factory = new DeserializerFactory(_mock.Object);

            factory.AddDeserializer(mock.Object);
            IDeserializer act = factory.GetDeserializer("json");

            Assert.Equal(_mock.Object, act);
        }
 public RestClientOptions()
 {
     DefaultSerializer   = new JsonSerializer();
     DeserializerFactory = new DeserializerFactory(new PlainTextDeserializer());
     DeserializerFactory.AddDeserializer(new JsonDeserializer());
 }