public void Setup() { repo = A.Fake <IEmailRepository>(); mailDeliveryService = A.Fake <IDeliverEmail>(); logger = A.Fake <ILogger <EmailService> >(); email = fixture.Create <Email>(); email.BodyHtml = string.Concat("<body>", email.BodyHtml, "<body/>"); sut = new EmailService(repo, mailDeliveryService, logger); }
public EmailService(IEmailRepository repo, IDeliverEmail mailDeliveryService, ILogger <EmailService> logger) { this.repo = repo; this.mailDeliveryService = mailDeliveryService; this.logger = logger; }