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);
        }
Beispiel #2
0
        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);
        }