예제 #1
0
 public UserAdminController(ApplicationDbContext context)
 {
     _context            = context;
     _dataAccess         = new DataAccsessAction(context);
     _userAdminViewModel = new UserAdminViewModel();
     _reportGenerator    = new ReportGenerator();
 }
        public void Setup()
        {
            _context = new ApplicationDbContext(
                new DbContextOptionsBuilder <ApplicationDbContext>().UseSqlite(CreateInMemoryDatabase()).Options);

            _uut = new DataAccsessAction(_context);

            Seed();
        }
예제 #3
0
 public SystemAdminController(UserManager <ApplicationUser> userManager,
                              SignInManager <ApplicationUser> signInManager,
                              ILogger <RegisterModel> logger,
                              IEmailSender emailSender,
                              ApplicationDbContext context)
 {
     _userManager          = userManager;
     _signInManager        = signInManager;
     _logger               = logger;
     _emailSender          = emailSender;
     _context              = context;
     _dataAccess           = new DataAccsessAction(context);
     _systemAdminViewModel = new SystemAdminViewModel();
 }
예제 #4
0
        public RegisterModel(
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager,
            ILogger <RegisterModel> logger,
            ApplicationDbContext context,
            IOptions <SmsAccount> smsAccount,
            IOptions <EmailAccount> emailAccount)

        {
            _userManager   = userManager;
            _signInManager = signInManager;
            _logger        = logger;
            _context       = context;
            _dataAccess    = new DataAccsessAction(context);
            _smsAccount    = smsAccount;
            _emailAccount  = emailAccount;
        }
예제 #5
0
 public HomeController(ApplicationDbContext context)
 {
     _context    = context;
     _dataAccess = new DataAccessAction(context);
 }
 public LaundryUserController(ApplicationDbContext context)
 {
     _context    = context;
     _dataAccess = new DataAccsessAction(context);
 }
 public KitchenStaffController(ApplicationDbContext context)
 {
     _context    = context;
     _dataAccess = new DataAccessAction(context);
 }
예제 #8
0
 public ReceptionistController(ApplicationDbContext context)
 {
     _context    = context;
     _dataAccess = new DataAccessAction(context);
 }