public void TestInvoked_Ok()
 {
     using (var logger = new InProcMessagePackStreamLogger())
     {
         ClientTransportTest.TestFiltersCore(
             null,
             null,
             (request, responseData, fatalError, responseError) =>
         {
             var entry = logger.Entries.Single();
             Assert.That(entry.Stream, Is.EqualTo(responseData));
         },
             new ClientStreamLoggingMessageFilterProvider(logger)
             );
     }
 }
 public void TestApplied()
 {
     using (var logger = new InProcMessagePackStreamLogger())
     {
         ClientTransportTest.TestFiltersCore(
             null,
             transport =>
         {
             Assert.That(transport.BeforeDeserializationFilters.Count, Is.EqualTo(1));
             var filter = transport.BeforeDeserializationFilters[0] as ClientStreamLoggingMessageFilter;
             Assert.That(filter, Is.Not.Null);
             Assert.That(transport.AfterSerializationFilters, Is.Empty);
         },
             null,
             new ClientStreamLoggingMessageFilterProvider(logger)
             );
     }
 }