public void SearchIngridients_ShouldThrow_SearchException(SearchIngridientModel searchIngridientModel, string expectedMessage)
        {
            //Arrange
            var(ingridientRepository, dataBase) = GetMocks();
            var ingridientService = new IngridientService(ingridientRepository.Object);

            //Act
            var exception = Assert.ThrowsAsync <SearchException>(() => ingridientService.SearchIngridients(searchIngridientModel));

            //Assert
            Assert.AreEqual(expectedMessage, exception.Message);
        }
        public async Task SearchIngridients_ShouldReturn_Ingridients()
        {
            //Arrange
            var(ingridientRepository, dataBase) = GetMocks();
            var ingridientService     = new IngridientService(ingridientRepository.Object);
            var ingridientSearchModel = new SearchIngridientModel();

            //Act
            var ingridients = await ingridientService.SearchIngridients(ingridientSearchModel);

            //Assert
            Assert.AreEqual(dataBase.Select(p => p.Value).ToList(), ingridients);
        }