public async void Get_With_QueryString_test() { var payload = new FilterRequest { Category = "Shoes", NumberOfItems = 10 }; var response = await _client.GetAsync("api/test", payload); var expected = response.ReadAs <FilterRequest>(); expected.Should().NotBeNull(); expected.Category.Should().Be(payload.Category); expected.NumberOfItems.Should().Be(payload.NumberOfItems); }
public async void Get_With_QueryString_test() { var payload = new FilterRequest { Category = "Shoes", NumberOfItems = 10 }; var response = await _client.GetAsync("api/test", payload); var expected = response.ReadAs<FilterRequest>(); expected.Should().NotBeNull(); expected.Category.Should().Be(payload.Category); expected.NumberOfItems.Should().Be(payload.NumberOfItems); }
public FilterRequest FilterProducts([FromUri] FilterRequest request) { return(request); }