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());
 }
Exemple #3
0
 public List <Vote> GetVotes()
 {
     return(FakeDB.GetInstance().GetVotes());
 }
Exemple #4
0
 public bool AddVote(string peopleId, string restaurantId, DateTime date)
 {
     return(FakeDB.GetInstance().AddVote(peopleId, restaurantId, date));
 }
Exemple #5
0
 public Restaurant GetRestaurantOfTheDay(DateTime date)
 {
     return(FakeDB.GetInstance().GetRestaurantByDate(date));
 }
Exemple #6
0
 public List <Restaurant> GetRestaraunts()
 {
     return(FakeDB.GetInstance().GetRestaurants());
 }