public void RetrieveTest_withInvalidID_AdditionalInfo() { // Arrange Edition entry = new Edition("_aaa"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(0, count); Assert.AreEqual("_aaa", entry.ID); Assert.IsNull(entry.EnglishTitle); Assert.IsNull(entry.GermanTitle); Assert.IsNull(entry.Details); Assert.IsNull(entry.Status); Assert.IsNull(entry.LastUpdated); }
public void RetrieveTest_withValidID_AdditionalInfo() { // Arrange Edition entry = new Edition("_xxx"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(1, count); Assert.AreEqual("_xxx", entry.ID); Assert.AreEqual("Edition EnglishTitle X", entry.EnglishTitle); Assert.AreEqual("Edition GermanTitle X", entry.GermanTitle); Assert.AreEqual("Edition Details X", entry.Details); Assert.AreEqual("_xxx", entry.Status.ID); Assert.AreEqual("Edition LastUpdated X", entry.LastUpdated); }
public EditEditionForm(Edition edition) { InitializeComponent(); m_Edition = edition; m_Edition.Retrieve(edition.ID); }