public AdminController()
 {
     _context           = new ApplicationDbContext();
     _dbContext         = new SportboardDbContext();
     _unitOfWork        = new UnitOfWork(_dbContext);
     _requestRepository = new DeletionRequestRepository(_dbContext);
 }
Example #2
0
 public ManageController()
 {
     _context = new SportboardDbContext();
     _uow     = new UnitOfWork(_context);
     _userPreferenceRepository  = new UserPreferenceRepository(_context);
     _userRepository            = new UserRepository(_context);
     _imageRepository           = new ImageRepository(_context);
     _deletionRequestRepository = new DeletionRequestRepository(_context);
 }
 public FeedController()
 {
     _context                   = new SportboardDbContext();
     _unitOfWork                = new UnitOfWork(_context);
     _imageRepository           = new ImageRepository(_context);
     _feedRepository            = new FeedRepository(_context);
     _postRepository            = new PostRepository(_context);
     _userPreferenceRepository  = new UserPreferenceRepository(_context);
     _userRepository            = new UserRepository(_context);
     _deletionRequestRepository = new DeletionRequestRepository(_context);
 }
Example #4
0
 public UnitOfWork(SportboardDbContext context)
 {
     _context          = context;
     Feeds             = new FeedRepository(_context);
     Comments          = new CommentRepository(_context);
     Images            = new ImageRepository(_context);
     Posts             = new PostRepository(_context);
     Users             = new UserRepository(_context);
     UserPreferences   = new UserPreferenceRepository(_context);
     DeletionRequests  = new DeletionRequestRepository(_context);
     UserNotifications = new UserNotificationRepository(_context);
 }
Example #5
0
 private DeletionRequestService()
 {
     drRepository = new DeletionRequestRepository();
 }