public EmailService( ApiDbContext context, IHttpContextAccessor httpContext, IEmailDocumentsService emailDocumentService, IEmailRenderingService emailRenderingService, IChesClient chesClient, ISmtpEmailClient smtpEmailClient) : base(context, httpContext) { _emailDocumentService = emailDocumentService; _emailRenderingService = emailRenderingService; _chesClient = chesClient; _smtpEmailClient = smtpEmailClient; }
public EmailService CreateService( IHttpContextAccessor httpContext = null, IEmailDocumentsService emailDocumentService = null, IEmailRenderingService emailRenderingService = null, IChesClient chesClient = null, ISmtpEmailClient smtpEmailClient = null ) { return(new EmailService( TestDb, httpContext ?? A.Fake <IHttpContextAccessor>(), emailDocumentService ?? A.Fake <IEmailDocumentsService>(), emailRenderingService ?? A.Fake <IEmailRenderingService>(), chesClient ?? A.Fake <IChesClient>(), smtpEmailClient ?? A.Fake <ISmtpEmailClient>() )); }
public Handler(EmailOptions emailOptions, ISmtpClient smtpClient, IEmailRenderingService emailRenderingService) { this.emailOptions = emailOptions; this.smtpClient = smtpClient; this.emailRenderingService = emailRenderingService; }