Exemplo n.º 1
0
        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);
        }
Exemplo n.º 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);
        }