public void ValidSimpleStrongTypeTryGenerateFluidTest() { var model = new PersonModel("Paul", "Spinks"); string content = @"{{ Model.FirstName }} {{ Model.LastName }}"; var mailChemist = new MailChemist(); mailChemist.TryGenerateFluid(content, model, out var fluid, out var errors); Assert.Empty(errors); Assert.Equal("Paul Spinks", fluid); }
public void ValidateErrorsTryGenerateFluidTest() { string content = @"<mjml> <mj-body> <mj-section> <mj-column> <mj-text font-size=""20px"" color=""#F45E43"" font-family=""helvetica"">{{ ; }}</mj-text> </mj-column> </mj-section> </mj-body> </mjml>"; var model = new PersonModel("Paul"); var mailChemist = new MailChemist(); mailChemist.TryGenerateFluid(content, model, out var result, out var errors); Assert.NotEmpty(errors); }