public void GetItemt_WillGetNotFoundItem()
        {
            var controller = new ItemController(GetTestItems());

            var result = controller.GetItem(999);
            Assert.IsInstanceOfType(result, typeof(NotFoundResult));
        }
        public void GetItem_WillReturnRightItem()
        {
            var testItems = GetTestItems();
            var controller = new ItemController(testItems);

            var result = controller.GetItem(4) as OkNegotiatedContentResult<Item>;
            Assert.IsNotNull(result);
            Assert.AreEqual(testItems[3].Name, result.Content.Name);
        }