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; }
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); }
/// <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; }