public void Context() { var parts = new List<EmailPart> { new UnknownPart() }; var emailHtmlBuilder = new EmailHtmlBuilder(); _exception = Should.Throw<EmailMakerException>(() => emailHtmlBuilder.BuildHtmlEmail(parts)); }
public void Context() { var template = EmailTemplateBuilder.New .WithId(45) .WithInitialHtml("12345") .Build(); var emailTemplateDto = new EmailTemplateDto { EmailTemplateId = 45, Parts = new[] { new EmailTemplatePartDto() } }; _exception = Should.Throw<EmailMakerException>(() => template.Update(emailTemplateDto)); }