예제 #1
0
        private static FluentClient CreateClient(FakeResponseMode mode = FakeResponseMode.Capture)
        {
            var serializer = new JsonContentSerializer();
            var fakeHttp = new FakeMessageHandler { Mode = mode };

            var client = new FluentClient(serializer, fakeHttp);
            return client;
        }
예제 #2
0
        private static FluentClient CreateClient(FakeResponseMode mode = FakeResponseMode.Capture)
        {
            var serializer = new JsonContentSerializer();
            var fakeHttp   = new FakeMessageHandler {
                Mode = mode
            };

            var client = new FluentClient(serializer, fakeHttp);

            return(client);
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FakeMessageHandler"/> with the specified fake message store.
 /// </summary>
 /// <param name="messageStore">The fake message store.</param>
 /// <param name="mode">The fake response mode.</param>
 public FakeMessageHandler(IFakeMessageStore messageStore, FakeResponseMode mode)
 {
     Mode         = mode;
     MessageStore = messageStore;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FakeMessageHandler"/> with the specified fake message store.
 /// </summary>
 /// <param name="messageStore">The fake message store.</param>
 /// <param name="mode">The fake response mode.</param>
 public FakeMessageHandler(IFakeMessageStore messageStore, FakeResponseMode mode)
 {
     Mode = mode;
     MessageStore = messageStore;
 }