Пример #1
0
 public void GetFoodByName()
 {
     IBusinessService businessService = new EfBusinessLayer();
     var food = businessService.GetFoodByName("Food1");
     Assert.NotNull(food);
     Assert.True(food.Id > 0);
 }
Пример #2
0
 private void DeleteDayTest()
 {
     IBusinessService businessService = new EfBusinessLayer();
     var day = businessService.GetMostRecentDay();
     businessService.DeleteDay(day.DayId);
 }
Пример #3
0
 private void ClearDayTest()
 {
     IBusinessService businessService = new EfBusinessLayer();
     businessService.ClearDay();
 }
Пример #4
0
 private void AddDayTest()
 {
     IBusinessService businessService = new EfBusinessLayer();
     businessService.AddDay();
 }
Пример #5
0
 public void SeedDatabaseTest()
 {
     IBusinessService businessService = new EfBusinessLayer();
     SeedFood(businessService);
     //SeedMeal(businessService);
 }
Пример #6
0
 public void GetMostRecentDayTest()
 {
     IBusinessService businessService = new EfBusinessLayer();
     var recentDay = businessService.GetMostRecentDay();
     Assert.NotNull(recentDay);
 }
Пример #7
0
 public void GetDayTotalsTest()
 {
     IBusinessService businessService = new EfBusinessLayer();
     var dayTotals = businessService.GetDayTotals();
     Assert.NotNull(dayTotals);
 }
Пример #8
0
 public void GetCalorieCountAllDaysTest()
 {
     var businessService = new EfBusinessLayer();
     var allDays = businessService.GetCalorieCountAllDays();
     Assert.NotNull(allDays);
 }
Пример #9
0
 public void DeleteInvalidDaysTest()
 {
     var businessService = new EfBusinessLayer();
     businessService.DeleteInvalidDays();
 }