public void UpdateFoodplan_NoWeekOrYearSelected_RecipeListIsEmpty() { _foodplanCollector.GetById(Arg.Any <int>()).Returns(new List <Tuple <Recipe, DateTime> >() { new Tuple <Recipe, DateTime>(new Recipe() { RecipeName = "Test", Procedure = "Test" }, DateTime.Now) }); Assert.That(_sut.Foodplan.Count, Is.EqualTo(0)); }
/// <summary> /// Updates the Foodplan asynchronously using the injected FoodplanCollector /// </summary> public async Task Update() { if (_loginModel.FoodplanId < 0) { return; } Foodplan.RecipeList = await _foodplanCollector.GetById(_loginModel.FoodplanId); }