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