public UnitOfWorkFakeDB() { _db = FakeDB.GetInstance(); _rollbackDb = new StaticDbRollback(_db); UserRepo = new UserRepository(_db); CourseRepo = new CourseRepository(_db); SectionRepo = new SectionRepository(_db); LessonRepo = new LessonRepository(_db); CategoryRepo = new CategoryRepository(_db); ApplicationRepo = new ApplicationRepository(_db); }
public List <People> GetPeoples() { return(FakeDB.GetInstance().GetPeoples()); }
public List <Vote> GetVotes() { return(FakeDB.GetInstance().GetVotes()); }
public bool AddVote(string peopleId, string restaurantId, DateTime date) { return(FakeDB.GetInstance().AddVote(peopleId, restaurantId, date)); }
public Restaurant GetRestaurantOfTheDay(DateTime date) { return(FakeDB.GetInstance().GetRestaurantByDate(date)); }
public List <Restaurant> GetRestaraunts() { return(FakeDB.GetInstance().GetRestaurants()); }