예제 #1
0
        public async Task GetConditions_ReturnsBadRequestResponse_GivenInvalidOrderByParameter()
        {
            //Arrange
            resourceParameters.OrderBy = "Invalid";

            //Act
            var response = await _controller.GetConditions(resourceParameters, null);

            //Assert
            Assert.IsType <BadRequestResult>(response);
        }