Example #1
0
        public async Task CreateRangeAsyncShouldCreateIngredientsSuccessfully()
        {
            await _ingredientsService.CreateRangeAsync(new string[]
            {
                "ham", "mushrooms"
            });

            Assert.Equal(2, _ingredientsRepository.All().Count());
            Assert.Equal("ham", _ingredientsRepository.All().First().Name);
            Assert.Equal("mushrooms", _ingredientsRepository.All().Last().Name);
        }