public ImprestSurrenderController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, UnisolAPIdbContext unisolContext) { _unisolApiProxy = unisolApiProxy; _context = context; _tokenValidator = new TokenValidator(_context); _unisolContext = unisolContext; }
public PortalConfigController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, IHostingEnvironment env) { _unisolApiProxy = unisolApiProxy; _context = context; _env = env; _tokenValidator = new TokenValidator(_context); }
public LeaveController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, IHostingEnvironment hostingEnvironment) { _unisolApiProxy = unisolApiProxy; _context = context; _hostingEnvironment = hostingEnvironment; _tokenValidator = new TokenValidator(_context); }
public HostelBookingController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context) { _unisolApiProxy = unisolApiProxy; _context = context; classStatus = _context.Settings.FirstOrDefault()?.ClassStatus; _tokenValidator = new TokenValidator(_context); }
public PerformanceController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, IConfiguration configuration) { _context = context; _unisolApiProxy = unisolApiProxy; _tokenValidator = new TokenValidator(context); _configuration = configuration; }
public ProfileController(PortalCoreContext context, IUnisolApiProxy unisolApiProxy) { _unisolApiProxy = unisolApiProxy; _context = context; classStatus = _context.Settings.FirstOrDefault()?.ClassStatus; _tokenValidator = new TokenValidator(_context); }
public MessagesController(PortalCoreContext context, IPortalServices portalServices, IUnisolApiProxy unisolApiProxy) { _context = context; _portalServices = portalServices; _unisolApiProxy = unisolApiProxy; _tokenValidator = new TokenValidator(_context); }
public CroneJobs(PortalCoreContext context, IUnisolApiProxy unisolApiProxy, IEmailService emailService, IHostingEnvironment env, IEmailConfiguration emailConfiguration, IConfiguration configuration) { _context = context; _unisolApiProxy = unisolApiProxy; classStatus = _context.Settings.FirstOrDefault()?.ClassStatus; emailSender = new EmailSender(configuration, context, emailConfiguration, env, emailService); }
public IpPayslipController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context) { _unisolApiProxy = unisolApiProxy; _context = context; _tokenValidator = new TokenValidator(_context); userValidator = new UserValidator(); }
public AttendanceController(PortalCoreContext context, IUnisolApiProxy unisolApiProxy, IHostingEnvironment env) { _context = context; _unisolApiProxy = unisolApiProxy; _tokenValidator = new TokenValidator(context); systemService = new SystemService(context, env); }
public HomeController(IConfiguration configuration, PortalCoreContext context, IUnisolApiProxy unisolApiProxy, HostingEnvironment hostingEnvironment) { _configuration = configuration; _hostingEnvironment = hostingEnvironment; _unisolApiProxy = unisolApiProxy; _context = context; }
public RetakeController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context) { _unisolApiProxy = unisolApiProxy; _context = context; _tokenValidator = new TokenValidator(_context); userValidator = new UserValidator(); classStatus = context.Settings.FirstOrDefault()?.ClassStatus; }
public ResearchController(PortalCoreContext context, IConfiguration configuration, IUnisolApiProxy unisolApiProxy, IHostingEnvironment env) { _context = context; _env = env; _configuration = configuration; _unisolApiProxy = unisolApiProxy; systemService = new SystemService(context, env); }
public CommonUtilitiesController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, IPortalServices portalServices) { _unisolApiProxy = unisolApiProxy; _context = context; _portalServices = portalServices; classStatus = _context.Settings.FirstOrDefault()?.ClassStatus; _tokenValidator = new TokenValidator(_context); }
public RepositoryController(PortalCoreContext context, IConfiguration configuration, IHostingEnvironment hostingEnvironment) { _validateService = new InputValidator(); _configuration = configuration; _hostingEnvironment = hostingEnvironment; _context = context; _tokenValidator = new TokenValidator(_context); }
public NewsController(PortalCoreContext context, IPortalServices portalServices, IConfiguration configuration, IEmailConfiguration emailConfiguration, IHostingEnvironment env, IEmailService emailService) { _context = context; _portalServices = portalServices; _tokenValidator = new TokenValidator(_context); emailSender = new EmailSender(configuration, context, emailConfiguration, env, emailService); }
public EmailSender(IConfiguration configuration, PortalCoreContext context, IEmailConfiguration emailConfiguration, IHostingEnvironment env, IEmailService emailService) { _env = env; _context = context; _emailService = emailService; _configuration = configuration; _emailConfiguration = emailConfiguration; }
public EventsController(PortalCoreContext context, IPortalServices portalServices, IConfiguration configuration, IEmailConfiguration emailConfiguration, IHostingEnvironment env, IEmailService emailService, IUnisolApiProxy unisolApiProxy) { _context = context; _portalServices = portalServices; _tokenValidator = new TokenValidator(_context); _unisolApiProxy = unisolApiProxy; emailSender = new EmailSender(configuration, context, emailConfiguration, env, emailService); }
public PortalLogsController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, IHostingEnvironment env, IConfiguration configuration, IEmailConfiguration emailConfiguration, IEmailService emailService) { _unisolApiProxy = unisolApiProxy; _context = context; _env = env; _tokenValidator = new TokenValidator(_context); emailSender = new EmailSender(configuration, context, emailConfiguration, env, emailService); }
public CurrentEvaluationsController(PortalCoreContext context, IUnisolApiProxy unisolApiProxy, IEmailService emailService, IEmailConfiguration emailConfiguration, IPortalServices portalServices) { _validateService = new InputValidator(); _unisolApiProxy = unisolApiProxy; _context = context; _emailService = emailService; _emailConfiguration = emailConfiguration; _portalServices = portalServices; _tokenValidator = new TokenValidator(_context); }
public UserManagentUnitTest() { portalDbTestContext = new PortalDbTestContext().GetContext(); unisolApiProxy = new UnisolApiProxy("http://localhost:8088/api/"); portalServices = new PortalServices(portalDbTestContext, unisolApiProxy); configuration = new Mock <IConfiguration>().Object; env = new Mock <IHostingEnvironment>().Object; emailConfiguration = new EmailConfiguration(); emailService = new EmailService(emailConfiguration); userManagementService = new UserManagementService(portalDbTestContext, portalServices, unisolApiProxy, configuration, emailConfiguration, env, emailService); }
public UserManagementService(PortalCoreContext context, IPortalServices portalServices, IUnisolApiProxy unisolApiProxy, IConfiguration configuration, IEmailConfiguration emailConfiguration, IHostingEnvironment env, IEmailService emailService) { _context = context; _portalServices = portalServices; _unisolApiProxy = unisolApiProxy; _env = env; _validateService = new InputValidator(); userCredentials = new UserCredentials(context); classStatus = _context.Settings.FirstOrDefault()?.ClassStatus ?? "Active"; emailSender = new EmailSender(configuration, context, emailConfiguration, env, emailService); }
public LoginApiController(PortalCoreContext context, IUnisolApiProxy unisolApiProxy, IPortalServices portalServices, IUserManagementService userManagementService, HostingEnvironment hostingEnvironment) { _context = context; _unisolApiProxy = unisolApiProxy; _userManagementService = userManagementService; _hostingEnvironment = hostingEnvironment; _portalServices = portalServices; _validateService = new InputValidator(); userCredentials = new UserCredentials(context); classStatus = _context.Settings.FirstOrDefault()?.ClassStatus; }
public PortalEvaluationsController(PortalCoreContext context, IUnisolApiProxy unisolApiProxy, IEmailService emailService, IEmailConfiguration emailConfiguration, IPortalServices portalServices) { _validateService = new InputValidator(); _unisolApiProxy = unisolApiProxy; _context = context; _emailService = emailService; _portalServices = portalServices; _emailConfiguration = emailConfiguration; classStatus = _context.Settings.FirstOrDefault()?.ClassStatus; _tokenValidator = new TokenValidator(_context); }
public UnitOfWork(PortalCoreContext context) { _context = context; //Term = new TermRepository(context); Users = new GenericRepository <User>(context); PortalMessage = new GenericRepository <PortalMessage>(context); UserGroups = new GenericRepository <UserGroups>(context); PortalNews = new GenericRepository <PortalNews>(context); UserToken = new GenericRepository <UserToken>(context); PortalEvents = new GenericRepository <PortalEvents>(context); UserGroupPrivilege = new GenericRepository <UserGroupPrivilege>(context); PortalConfig = new GenericRepository <PortalConfig>(context); }
public PortalCoreContext GetContext() { var options = new DbContextOptionsBuilder <PortalCoreContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; var context = new PortalCoreContext(options); // ABS232-0140/2018 context.Users.Add(new User { EmailConfirmed = true, UserName = "******", Email = "*****@*****.**", UserGroupsId = 1, PasswordHash = SecurePasswordHasher.Hash("123456"), Code = "493ddc84-a8b4-47ff-a3b3-ecd07bf125fa", DateCreated = DateTime.Now, Role = Role.Admin, Status = true, }); context.UserGroups.Add(new UserGroups { GroupName = "AbnAdmin", Role = Role.Admin, IsDefault = true, Status = true }); context.UserGroups.Add(new UserGroups { GroupName = "Student", Role = Role.Student, IsDefault = true, Status = true }); context.Settings.Add(new Settings { Name = "University of ABNO", EmailUserName = "******", LogoImageUrl = "../../../assets/images/logo.jpg", }); context.SaveChanges(); return(context); }
public UsersController(PortalCoreContext context, IUserManagementService userManagementService, IUnisolApiProxy unisolApiProxy, IEmailService emailService, IEmailConfiguration emailConfiguration, IConfiguration configuration, IHostingEnvironment env, IPortalServices portalServices, OldMembershipContext oldMembershipContext) { _validateService = new InputValidator(); _unisolApiProxy = unisolApiProxy; _context = context; _oldMembershipContext = oldMembershipContext; _emailService = emailService; _emailConfiguration = emailConfiguration; _userManagementService = userManagementService; _configuration = configuration; _env = env; _portalServices = portalServices; _userCredentials = new UserCredentials(context); _tokenValidator = new TokenValidator(context); emailSender = new EmailSender(configuration, context, emailConfiguration, env, emailService); }
public AcademicController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context) { _unisolApiProxy = unisolApiProxy; classStatus = context.Settings.FirstOrDefault()?.ClassStatus; _tokenValidator = new TokenValidator(context); }
public UserCredentials(PortalCoreContext context) { _context = context; validationResults = new ValidationResult(); }
public UnitsController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context) { _unisolApiProxy = unisolApiProxy; settings = context.Settings.FirstOrDefault(); _tokenValidator = new TokenValidator(context); }