public void GetItemCategory_ContainResult()
        {
            //Arrange
            //Instantiate controller
            var controller = new ItemCategoryAPIController
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration(),
            };

            ItemCategory ic = context.ItemCategory.First();

            //Act
            ItemCategoryViewModel result = controller.GetItemCategory(ic.ItemCategoryId.ToString());

            //Assert
            Assert.AreEqual(ic.Name, result.Name);
        }
        public void GetAllItemCategories_ContainsResult()
        {
            //Arrange
            //Instantiate controller
            var controller = new ItemCategoryAPIController
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration(),
            };

            //Act
            IHttpActionResult actionResult = controller.ItemCategories();
            var contentResult = actionResult as OkNegotiatedContentResult <List <ItemCategoryViewModel> >;

            //Assert
            Assert.IsNotNull(contentResult);
            Assert.IsNotNull(contentResult.Content);
        }