public ListingServices(
     EmailAppManagerContext context,
     IApplicationServices appService)
 {
     this.context    = context;
     this.appService = appService;
 }
 public GoogleAuthService(IHttpClientFactory factory,
                          IOptions <GoogleAuthOptions> googleAuthOptions,
                          EmailAppManagerContext context)
 {
     this.factory = factory ?? throw new ArgumentNullException(nameof(factory));
     this.options = googleAuthOptions?.Value ?? throw new ArgumentNullException(nameof(googleAuthOptions));
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public AppEmailService(EmailAppManagerContext context,
                        IGmailApiService apiService,
                        IGoogleAuthService googleService)
 {
     this.context       = context ?? throw new ArgumentNullException(nameof(context));
     this.apiService    = apiService ?? throw new ArgumentNullException(nameof(apiService));
     this.googleService = googleService ?? throw new ArgumentNullException(nameof(googleService));
 }
 public GmailApiService(IHttpClientFactory factory,
                        IOptions <GmailApiUrlOptions> gmailOptions,
                        IGoogleAuthService gmailAuthService,
                        EmailAppManagerContext context)
 {
     this.factory          = factory ?? throw new ArgumentNullException(nameof(factory));
     this.gmailUrlOptions  = gmailOptions?.Value ?? throw new ArgumentNullException(nameof(gmailOptions));
     this.gmailAuthService = gmailAuthService ?? throw new ArgumentNullException(nameof(gmailAuthService));
     this.context          = context ?? throw new ArgumentNullException(nameof(context));
 }
Ejemplo n.º 5
0
 public AccountController(
     EmailAppManagerContext context,
     UserManager <AppUser> userManager,
     SignInManager <AppUser> signInManager,
     RoleManager <IdentityRole> roleManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     IRegisterService registerService,
     IHttpContextAccessor contextAccessor)
 {
     this.context         = context;
     this.userManager     = userManager;
     this.signInManager   = signInManager;
     this.roleManager     = roleManager;
     this.emailSender     = emailSender;
     this.logger          = logger;
     this.registerService = registerService;
     this.contextAccessor = contextAccessor;
 }
 public EmailController(
     EmailAppManagerContext context,
     IAppEmailService emailService,
     IGoogleAuthService googleService,
     IGmailApiService apiService,
     IListingServices listingServices,
     IViewModelMapper <Email, EmailViewModel> emailMapper,
     IViewModelMapper <IReadOnlyCollection <Email>, HomeViewModel> homeMapper,
     IViewModelMapper <IReadOnlyCollection <Email>, ListingAllEmailsViewModel> allEmailsListingMapper,
     IViewModelMapper <IReadOnlyCollection <Email>, ListingValidEmailsViewModel> validEmailsListingMapper)
 {
     this.context                  = context ?? throw new ArgumentNullException(nameof(context));
     this.emailService             = emailService ?? throw new ArgumentNullException(nameof(emailService));
     this.googleService            = googleService ?? throw new ArgumentNullException(nameof(googleService));
     this.apiService               = apiService ?? throw new ArgumentNullException(nameof(apiService));
     this.listingServices          = listingServices ?? throw new ArgumentNullException(nameof(listingServices));
     this.emailMapper              = emailMapper ?? throw new ArgumentNullException(nameof(emailMapper));
     this.allEmailsListingMapper   = allEmailsListingMapper ?? throw new ArgumentNullException(nameof(allEmailsListingMapper));
     this.validEmailsListingMapper = validEmailsListingMapper ?? throw new ArgumentNullException(nameof(validEmailsListingMapper));
 }
Ejemplo n.º 7
0
 public ApplicationController(
     EmailAppManagerContext context,
     IAppEmailService emailService,
     IGmailApiService apiService,
     IListingServices listingServices,
     IApplicationServices applicationServices,
     IViewModelMapper <Application, ApplicationViewModel> applicationMapper,
     IViewModelMapper <Email, EmailViewModel> emailMapper,
     IViewModelMapper <IReadOnlyCollection <Email>, HomeViewModel> homeMapper,
     IViewModelMapper <IReadOnlyCollection <Application>, ListingOpenApplicationsViewModel> openApplicationsListingMapper,
     IViewModelMapper <IReadOnlyCollection <Application>, ListingClosedApplicationsViewModel> closedApplicationsListingMapper)
 {
     this.context                         = context ?? throw new ArgumentNullException(nameof(context));
     this.emailService                    = emailService ?? throw new ArgumentNullException(nameof(emailService));
     this.apiService                      = apiService ?? throw new ArgumentNullException(nameof(apiService));
     this.listingServices                 = listingServices ?? throw new ArgumentNullException(nameof(listingServices));
     this.applicationServices             = applicationServices ?? throw new ArgumentNullException(nameof(applicationServices));
     this.applicationMapper               = applicationMapper ?? throw new ArgumentNullException(nameof(applicationMapper));
     this.emailMapper                     = emailMapper ?? throw new ArgumentNullException(nameof(emailMapper));
     this.openApplicationsListingMapper   = openApplicationsListingMapper ?? throw new ArgumentNullException(nameof(openApplicationsListingMapper));
     this.closedApplicationsListingMapper = closedApplicationsListingMapper ?? throw new ArgumentNullException(nameof(closedApplicationsListingMapper));
 }
 public ApplicationViewModelMapper(EmailAppManagerContext context)
 {
     this.context = context;
 }
Ejemplo n.º 9
0
 public ApplicationServices(EmailAppManagerContext context)
 {
     this.context = context;
 }
Ejemplo n.º 10
0
 public UserService(EmailAppManagerContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }
Ejemplo n.º 11
0
 public EmailViewModelMapper(EmailAppManagerContext context)
 {
     this.context = context;
 }