public void TestSentence2_Invalid_Data() { var builder = new HealthProfilesKeyMessage1Builder { data = Sentence2Data(-1) }; var sentence2 = builder.GetSentence2(); Assert.AreEqual("", sentence2); }
public void TestSentence2_Deprivation_Mid() { var builder = new HealthProfilesKeyMessage1Builder { data = Sentence2Data(20) }; var sentence2 = builder.GetSentence2(); Assert.AreEqual("About 24% (3,300) of children live in low income families.", sentence2); }
public void TestSentence2DataIsNull() { var data = Sentence2Data(10); data.ChildrenInLowIncomeFamilies = null; var builder = new HealthProfilesKeyMessage1Builder { data = data }; var sentence2 = builder.GetSentence2(); Assert.AreEqual("", sentence2); }
public void TestSentence2_Deprivation_Low() { var builder = new HealthProfilesKeyMessage1Builder { data = Sentence2Data(1) }; var sentence2 = builder.GetSentence2(); Assert.AreEqual("AreaName is one of the 20% least deprived counties/unitary authorities in England, however about 24% (3,300) of children live in low income families.", sentence2); }
public void TestSentence2DataIsInvalid() { var data = Sentence2Data(10); data.ChildrenInLowIncomeFamilies = new CoreDataSet { Value = ValueData.NullValue }; var builder = new HealthProfilesKeyMessage1Builder { data = data }; var sentence2 = builder.GetSentence2(); Assert.AreEqual("", sentence2); }