public void ShouldReturnValidInventoryListWhenGetIsCalled() { var response = _controller.Get(); var inventoryList = ((OkNegotiatedContentResult <IList <Web.Models.Eatable> >)response).Content.ToList(); Assert.IsNotNull(inventoryList); Assert.IsTrue(inventoryList.Count == _mockInventoryList.Count); }
public void Integration_ShouldGetListOfEatables() { var response = _controller.Get(); var inventoryList = ((OkNegotiatedContentResult <IList <Web.Models.Eatable> >)response).Content.ToList(); Assert.IsNotNull(inventoryList); Assert.IsTrue(inventoryList.Count > 0); }