Esempio n. 1
0
 public MessagesController(PortalCoreContext context, IPortalServices portalServices, IUnisolApiProxy unisolApiProxy)
 {
     _context        = context;
     _portalServices = portalServices;
     _unisolApiProxy = unisolApiProxy;
     _tokenValidator = new TokenValidator(_context);
 }
Esempio n. 2
0
 public CommonUtilitiesController(IUnisolApiProxy unisolApiProxy, PortalCoreContext context, IPortalServices portalServices)
 {
     _unisolApiProxy = unisolApiProxy;
     _context        = context;
     _portalServices = portalServices;
     classStatus     = _context.Settings.FirstOrDefault()?.ClassStatus;
     _tokenValidator = new TokenValidator(_context);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 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);
 }
Esempio n. 8
0
 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);
 }
Esempio n. 9
0
 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);
 }
Esempio n. 10
0
 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);
 }
Esempio n. 11
0
 public DashboardController(IPortalServices portalServices, PortalCoreContext context)
 {
     _context        = context;
     _portalServices = portalServices;
     _tokenValidator = new TokenValidator(_context);
 }
Esempio n. 12
0
 public PrivilegesController(PortalCoreContext context, IPortalServices portalServices)
 {
     _context        = context;
     _portalServices = portalServices;
     _tokenValidator = new TokenValidator(_context);
 }