public void RemoveRecipe_RemoveRecipeById_CollectorFuncCalled() { const int id = 1; _uut.RemoveRecipe(1); _foodplanCollector.Received().RemoveRecipe(Arg.Any <int>(), id); }
/// <summary> /// Removes a given recipe and updates the view model's foodplan. /// </summary> private async void RemoveRecipe(int?recipeId) { if (recipeId == 0 || recipeId == null) { return; } await _foodplanModel.RemoveRecipe((int)recipeId); UpdateFoodplan(); }