예제 #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());
 }