public void RetrieveTest_withInvalidID_AdditionalInfo() { // Arrange Certification entry = new Certification("_aaa"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(0, count); Assert.AreEqual("_aaa", entry.ID); Assert.IsNull(entry.Name); Assert.IsNull(entry.Image); Assert.IsNull(entry.Country); Assert.IsNull(entry.Details); Assert.IsNull(entry.Status); Assert.IsNull(entry.LastUpdated); }
public void RetrieveTest_withValidID_AdditionalInfo() { // Arrange Certification entry = new Certification("_xxx"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(1, count); Assert.AreEqual("_xxx", entry.ID); Assert.AreEqual("Certification Name X", entry.Name); Assert.AreEqual("_xxx", entry.Image.ID); Assert.AreEqual("_xxx", entry.Country.ID); Assert.AreEqual("Certification Details X", entry.Details); Assert.AreEqual("_xxx", entry.Status.ID); Assert.AreEqual("Certification LastUpdated X", entry.LastUpdated); }