public async Task GetConditions_ReturnsBadRequestResponse_GivenInvalidOrderByParameter() { //Arrange resourceParameters.OrderBy = "Invalid"; //Act var response = await _controller.GetConditions(resourceParameters, null); //Assert Assert.IsType <BadRequestResult>(response); }