示例#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();
 }