public void RetrieveAdditionalInformationTest_withInvalidID(string value) { // Arrange AwardItem item = new AwardItem("_aa1", "Award"); item.BaseTableName = value; // Act int count = item.RetrieveAdditionalInformation(); // Assert Assert.AreEqual(0, count); }
public void RetrieveAdditionalInformationTest_withValidID(string value) { // Arrange AwardItem item = new AwardItem("_xx1", "Award"); item.BaseTableName = value; // Act int count = item.RetrieveAdditionalInformation(); // Assert Assert.AreEqual(3, count); Assert.AreEqual(3, item.Persons.Count); Assert.AreEqual("_x11", item.Persons[0].ID); Assert.AreEqual("_x12", item.Persons[1].ID); Assert.AreEqual("_x13", item.Persons[2].ID); }