コード例 #1
0
 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));
 }
コード例 #2
0
 public AddEmailsToDbService(IGmailUserDataService gmailUserDataService, IGmailApiService gmailApiService, IEmailService emailService, IStatusService statusService, ISenderService senderService, IAttachmentService attachmentService)
 {
     this.gmailUserDataService = gmailUserDataService ?? throw new ArgumentNullException(nameof(gmailUserDataService));
     this.gmailApiService      = gmailApiService ?? throw new ArgumentNullException(nameof(gmailApiService));
     this.emailService         = emailService ?? throw new ArgumentNullException(nameof(emailService));
     this.statusService        = statusService ?? throw new ArgumentNullException(nameof(statusService));
     this.senderService        = senderService ?? throw new ArgumentNullException(nameof(senderService));
     this.attachmentService    = attachmentService ?? throw new ArgumentNullException(nameof(attachmentService));
 }
コード例 #3
0
 public HomeController(
     IAppEmailService emailService,
     IGoogleAuthService gmailService,
     IGmailApiService apiService,
     IHttpContextAccessor httpContextAccessor,
     IViewModelMapper <Email, EmailViewModel> emailMapper,
     IViewModelMapper <IReadOnlyCollection <Email>, HomeViewModel> homeMapper)
 {
     this.emailService        = emailService ?? throw new ArgumentNullException(nameof(emailService));
     this.gmailService        = gmailService ?? throw new ArgumentNullException(nameof(gmailService));
     this.apiService          = apiService ?? throw new ArgumentNullException(nameof(apiService));
     this.httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this.emailMapper         = emailMapper ?? throw new ArgumentNullException(nameof(emailMapper));
     this.homeMapper          = homeMapper ?? throw new ArgumentNullException(nameof(homeMapper));
 }
コード例 #4
0
 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));
 }
コード例 #5
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));
 }
コード例 #6
0
 public HomeController(UserManager <User> userManager,
                       IGmailApiService gmailApiService,
                       IGmailUserDataService gmailUserDataService,
                       IEmailService emailService,
                       IViewModelMapper <Email, EmailViewModel> emailViewModelMapper,
                       IUserService userService,
                       IAuditLogService auditLogService,
                       IStatusService statusService,
                       ILogger <User> logger,
                       ICustomerService customerService)
 {
     this.userManager          = userManager ?? throw new ArgumentNullException(nameof(userManager));
     this.gmailApiService      = gmailApiService ?? throw new ArgumentNullException(nameof(gmailApiService));
     this.gmailUserDataService = gmailUserDataService ?? throw new ArgumentNullException(nameof(gmailUserDataService));
     this.emailService         = emailService ?? throw new ArgumentNullException(nameof(emailService));
     this.emailViewModelMapper = emailViewModelMapper ?? throw new ArgumentNullException(nameof(emailViewModelMapper));
     this.userService          = userService ?? throw new ArgumentNullException(nameof(userService));
     this.auditLogService      = auditLogService ?? throw new ArgumentNullException(nameof(auditLogService));
     this.statusService        = statusService ?? throw new ArgumentNullException(nameof(statusService));
     this.logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     this.customerService = customerService ?? throw new ArgumentNullException(nameof(customerService));
 }
コード例 #7
0
 public ParkingController(IPassToParkIt parkingService, IGmailApiService gmailService)
 {
     this.ParkingService = parkingService;
     this.gmailService   = gmailService;
 }
コード例 #8
0
 public GmailController(IGmailApiService gmailService,
                        IGoogleAuthService gmailAuthService)
 {
     this.gmailService     = gmailService ?? throw new ArgumentNullException(nameof(gmailService));
     this.gmailAuthService = gmailAuthService ?? throw new ArgumentNullException(nameof(gmailAuthService));
 }