Example #1
0
 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);
 }
Example #2
0
 public EmailService(IEmailRepository repo, IDeliverEmail mailDeliveryService, ILogger <EmailService> logger)
 {
     this.repo = repo;
     this.mailDeliveryService = mailDeliveryService;
     this.logger = logger;
 }