Пример #1
0
        public void ForkRecipeShouldBeCreated()
        {
            var id          = _recipeRepository.Recipes[0].Id;
            var name        = "testRecipe";
            var description = "testDescription";
            var newRecipe   = new CreateRecipeDto(name, description);

            _recipeRepository.ForkRecipe(id, newRecipe);

            _recipeRepository.GetAllRecipes().Should().Contain(x => x.Name == name && x.Description == description);
        }