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>(); }
public EmailService(IOptions <MailSettingsDTO> mailSettings, IPaymentService paymentService) { _mailSettings = mailSettings.Value; _paymentService = paymentService; }