private static void CreateSmtpClient() { var fakeSmtpClientFactory = new MailkitSmtpClientFactory(); _fakeSmtpClient = fakeSmtpClientFactory.Create(); _fakeSmtpClient.Connect("localhost", 50000); }
/// <summary> /// Конструктор /// </summary> /// <param name="emailConfigService"></param> /// <param name="mailKitSmtpClient"></param> public EmailService(IEmailConfigService emailConfigService, IMailKitSmtpClient mailKitSmtpClient) { _emailConfigService = emailConfigService; _mailKitSmtpClient = mailKitSmtpClient; }