public void GetListAsync_ShouldNotAllowNegavtiveLimit() { //arrange var controller = new CoordinateListController(_cooServiceMock.Object); //act var result = controller.GetListAsync(-10, 10).Result; //verify Assert.IsType <BadRequestObjectResult>(result); }
public void GetListAsync_ShouldNotAllowInvalidSortByENum() { //arrange var controller = new CoordinateListController(_cooServiceMock.Object); //act var result = controller.GetListAsync(0, 0, (SortBy)152).Result; //verify Assert.IsType <BadRequestObjectResult>(result); }