public void GetQueryMessageEncoder_should_return_a_QueryMessageJsonEncoder()
 {
     using (var textWriter = new StringWriter())
     {
         var encoderFactory = new JsonMessageEncoderFactory(null, textWriter, __messageEncoderSettings);
         var encoder        = encoderFactory.GetQueryMessageEncoder();
         encoder.Should().BeOfType <QueryMessageJsonEncoder>();
     }
 }
Esempio n. 2
0
 public void GetQueryMessageEncoder_should_return_a_QueryMessageJsonEncoder()
 {
     using (var stringWriter = new StringWriter())
         using (var jsonWriter = new JsonWriter(stringWriter))
         {
             var encoderFactory = new JsonMessageEncoderFactory(null, jsonWriter);
             var encoder        = encoderFactory.GetQueryMessageEncoder();
             encoder.Should().BeOfType <QueryMessageJsonEncoder>();
         }
 }