Ejemplo n.º 1
0
        public async Task GetRecipeIngredientsAsync_Success(int recipeId, IEnumerable <RecipeIngredient> ingredients)
        {
            A.CallTo(() => recipeService.GetRecipeIngredientsAsync(recipeId)).Returns(ingredients);

            var result = await sut.GetRecipeIngredientsAsync(recipeId).ConfigureAwait(false);

            result.Should().BeEquivalentTo(ingredients);
        }