public void RetrieveBasicInformationTest_withValidID_AdditionalInfo(string value) { // Arrange SoundMixItem item = new SoundMixItem("_xx1", "SoundMix"); item.BaseTableName = value; // Act int count = item.RetrieveBasicInformation(false); // Assert Assert.AreEqual(1, count); Assert.AreEqual("_xx1", item.ID); Assert.AreEqual("_xxx", item.SoundMix.ID); Assert.AreEqual($"{value} SoundMix Details X1", item.Details); Assert.AreEqual("_xxx", item.Status.ID); Assert.AreEqual($"{value} SoundMix LastUpdated X1", item.LastUpdated); }
public void RetrieveBasicInformationTest_withInvalidID_AdditionalInfo(string value) { // Arrange SoundMixItem item = new SoundMixItem("_aa1", "SoundMix"); item.BaseTableName = value; // Act int count = item.RetrieveBasicInformation(false); // Assert Assert.AreEqual(0, count); Assert.AreEqual("_aa1", item.ID); Assert.IsNull(item.SoundMix); Assert.IsNull(item.Details); Assert.IsNull(item.Status); Assert.IsNull(item.LastUpdated); }