Пример #1
0
        public void GivenNewDiet_WhenDayAdded_ThenCountOfDaysIsIncremented()
        {
            var diet = new Diet();

            diet.AddDay(new DietDay());
            Assert.Equal(1, diet.Days.Count);
        }
Пример #2
0
        public void SaveYamlTests()
        {
            var rawInput   = ReadFile("planInput.txt");
            var outputFile = "plan.yaml";
            var day        = new DietDay();
            var meal       = new DietScheduledMeal();

            //meal.FoodList.Add(food);
            day.Meals.Add(DietScheduledMealType.Breakfast, meal);
            day.Meals.Add(DietScheduledMealType.MidMorning, meal);
            day.Meals.Add(DietScheduledMealType.Lunch, meal);
            day.Meals.Add(DietScheduledMealType.AfternoonSnack, meal);
            day.Meals.Add(DietScheduledMealType.Dinner, meal);
            var diet = new Diet();

            diet.AddDay(day);
        }