Exemple #1
0
        public void setup()
        {
            // mock the settings here
            var emailOptions = new MailSettingsDTO()
            {
                Mail = "*****@*****.**",

                Password = "******",
                Host     = "smtp.gmail.com",
                Port     = 587
            };

            _options       = Options.Create(emailOptions);
            paymentService = new Mock <IPaymentService>();
        }
Exemple #2
0
 public EmailService(IOptions <MailSettingsDTO> mailSettings, IPaymentService paymentService)
 {
     _mailSettings   = mailSettings.Value;
     _paymentService = paymentService;
 }