public void IncludesDisclaimerForSpecialPlan() { var systemUnderTest = new Mailer(); var account = new TestAccountBuilder() .WithPlan("X12345") .Build(); var result = systemUnderTest.CreateWelcomeMessage(account); Assert.True(result.Contains("Your plan requires a consent form which you can download at ...")); }
public void GreetsByName() { var systemUnderTest = new Mailer(); var account = new TestAccountBuilder() .Build(); var result = systemUnderTest.CreateWelcomeMessage(account); Assert.True(result.Contains("John")); Assert.True(result.Contains("Smith")); }