public async void Should_find_a_request_satisfying_a_request_spec() { // given _server = FluentMockServer.Start(); // when await new HttpClient().GetAsync("http://localhost:" + _server.Port + "/foo"); await new HttpClient().GetAsync("http://localhost:" + _server.Port + "/bar"); // then var result = _server.SearchLogsFor(Requests.WithUrl("/b*")); Check.That(result).HasSize(1); var requestLogged = result.First(); Check.That(requestLogged.Url).IsEqualTo("/bar"); }
public async void Should_find_a_request_satisfying_a_request_spec() { // given _server = FluentMockServer.Start(); // when await new HttpClient().GetAsync("http://localhost:" + _server.Port + "/foo"); await new HttpClient().GetAsync("http://localhost:" + _server.Port + "/bar"); // then var result = _server.SearchLogsFor(Requests.WithUrl("/b*")); Check.That(result).HasSize(1); var requestLogged = result.First(); Check.That(requestLogged.Url).IsEqualTo("/bar"); }