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