Esempio n. 1
0
    public void GetAllIngredients()
    {
        var ingredientDbAccessMock = new Mock <IIngredientDbAccess>();
        var testee = new IngredientAction(ingredientDbAccessMock.Object, TestMapper.Create());

        testee.GetAllIngredients();

        ingredientDbAccessMock.Verify(x => x.GetIngredients(), Times.Once);
    }
Esempio n. 2
0
 /// <inheritdoc />
 public IEnumerable <ExistingIngredientDto> GetAllIngredients()
 {
     return(IngredientAction.GetAllIngredients());
 }