public ProcessingService(IEmailSender emailSender, IMessageInfoRetriever messageInfoRetriever) { _emailSender = emailSender; _messageInfoRetriever = messageInfoRetriever; }
public static string SendMessage(this IEmailSender emailSender, IMessageInfoRetriever messageInfoRetriever) { string messageBody = messageInfoRetriever.GetMessageBody(); emailSender.SendEmail(messageBody); return "Send Email With Body: " + messageBody; }