public void Context()
 {
     _template = EmailTemplateBuilder.New
         .WithInitialHtml("123")
         .WithVariable(1, 1)
         .Build();
     var htmlPartId = _template.Parts.Last().Id;
     _exception = Should.Throw<CoreException>(() => _template.DeleteVariable(htmlPartId));
 }
Exemplo n.º 2
0
 public void Context()
 {
     _template = EmailTemplateBuilder.New
         .WithInitialHtml("12345")
         .WithVariable(1, 1)
         .WithVariable(1, 1)
         .Build();
     var variablePartId = _template.Parts.ElementAt(1).Id;
     _template.DeleteVariable(variablePartId);
 }
 public void Context()
 {
     _template = EmailTemplateBuilder.New.Build();
     _exception = Should.Throw<CoreException>(() => _template.DeleteVariable(23));
 }