public void GetDeleteMessageEncoder_should_return_a_DeleteMessageJsonEncoder()
 {
     using (var textWriter = new StringWriter())
     {
         var encoderFactory = new JsonMessageEncoderFactory(null, textWriter, __messageEncoderSettings);
         var encoder        = encoderFactory.GetDeleteMessageEncoder();
         encoder.Should().BeOfType <DeleteMessageJsonEncoder>();
     }
 }
Exemple #2
0
 public void GetDeleteMessageEncoder_should_return_a_DeleteMessageJsonEncoder()
 {
     using (var stringWriter = new StringWriter())
         using (var jsonWriter = new JsonWriter(stringWriter))
         {
             var encoderFactory = new JsonMessageEncoderFactory(null, jsonWriter);
             var encoder        = encoderFactory.GetDeleteMessageEncoder();
             encoder.Should().BeOfType <DeleteMessageJsonEncoder>();
         }
 }