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));
        }
        public void Context()
        {
            var template = EmailTemplateBuilder.New
                           .WithInitialHtml("12345")
                           .Build();
            const int emailId = 78;
            var       email   = new EmailBuilder()
                                .WithId(emailId)
                                .WithEmailTemplate(template)
                                .Build();
            var emailDto = new EmailDto
            {
                EmailId = emailId,
                Parts   = new[] { new EmailPartDto {
                                      PartType = PartType.Html
                                  } }
            };

            _exception = Should.Throw <EmailMakerException>(() => email.UpdateVariables(emailDto));
        }