public void AddIngredient_GetsAllUnits_ReturnsAllUnits()
        {
            var mockDataService = new Mock <IDataService>();

            mockDataService.Setup(x => x.GetUnits())
            .Returns(UnitsTestData());

            var controller = new FoodController(mockDataService.Object);

            var vm = new IngredientViewModel();

            vm.Units = new List <SelectListItem> {
                new SelectListItem {
                    Text = "g"
                }
            };

            var result = controller.GetAddIngredient(vm);

            ViewResult viewResult = Assert.IsType <ViewResult>(result);

            var viewModel = Assert.IsType <IngredientViewModel>(viewResult.Model);

            Assert.Equal(UnitsTestData()[0].Name, viewModel.Units[0].Text);
        }