public void GetFoodByName() { IBusinessService businessService = new EfBusinessLayer(); var food = businessService.GetFoodByName("Food1"); Assert.NotNull(food); Assert.True(food.Id > 0); }
private void DeleteDayTest() { IBusinessService businessService = new EfBusinessLayer(); var day = businessService.GetMostRecentDay(); businessService.DeleteDay(day.DayId); }
private void ClearDayTest() { IBusinessService businessService = new EfBusinessLayer(); businessService.ClearDay(); }
private void AddDayTest() { IBusinessService businessService = new EfBusinessLayer(); businessService.AddDay(); }
public void SeedDatabaseTest() { IBusinessService businessService = new EfBusinessLayer(); SeedFood(businessService); //SeedMeal(businessService); }
public void GetMostRecentDayTest() { IBusinessService businessService = new EfBusinessLayer(); var recentDay = businessService.GetMostRecentDay(); Assert.NotNull(recentDay); }
public void GetDayTotalsTest() { IBusinessService businessService = new EfBusinessLayer(); var dayTotals = businessService.GetDayTotals(); Assert.NotNull(dayTotals); }
public void GetCalorieCountAllDaysTest() { var businessService = new EfBusinessLayer(); var allDays = businessService.GetCalorieCountAllDays(); Assert.NotNull(allDays); }
public void DeleteInvalidDaysTest() { var businessService = new EfBusinessLayer(); businessService.DeleteInvalidDays(); }