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(); }
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(); }
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; }
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); }
public ReceptionistController(ApplicationDbContext context) { _context = context; _dataAccess = new DataAccessAction(context); }