public void Get_should_return_ok() { // Arrange _wineryRepository .GetAllWineriesAsync(Arg.Any <Request>()) .Returns(Task.FromResult(new PagedResponse <IEnumerable <Winery> >()) ); // Act var okResult = _controller.Get().Result; // Assert Assert.IsInstanceOf <OkObjectResult>(okResult); }
public void WineryGetAll() { var wineries = _wineryController.Get(); Assert.NotEmpty(wineries); }