public EmailAppService( IUserRepository userRepo, IHttpContextAccessor accessor, IOptions <EmailAddressesConfig> emailConfig, IEmailBuilderFactory emailBuilderFactory, IAppEmailService appEmailService ) : base(accessor, userRepo) { this._emailConfig = emailConfig; this._emailBuilderFactory = emailBuilderFactory; this._appEmailService = appEmailService; }
public UserController( IAppEmailService appEmailService, IUserService userService, IApplicationServices applicationService, IViewModelMapper <AppUser, UserViewModel> userMapper, IHttpContextAccessor contextAccessor) { this.appEmailService = appEmailService; this.userService = userService; this.applicationService = applicationService; this.userMapper = userMapper; this.contextAccessor = contextAccessor; }
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)); }
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)); }
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 AppEmailController(IAppEmailService appEmailService) { _appEmailService = appEmailService; }