public async Task GetCollections_ReturnsBadRequestResponse_GivenInvalidOrderByParameter()
        {
            //Arrange
            resourceParameters.OrderBy = "Invalid";

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

            //Assert
            Assert.IsType <BadRequestResult>(response);
        }
Beispiel #2
0
 public void OnRefeshClick()
 {
     collectionsController.GetCollections();
 }