Beispiel #1
0
        public void RetrieveBasicInformationTest_withValidID_AdditionalInfo()
        {
            // Arrange
            Laboratory entry = new Laboratory("_xxx");

            // Act
            int count = entry.RetrieveBasicInformation(false);

            // Assert
            Assert.AreEqual(1, count);

            Assert.AreEqual("_xxx", entry.ID);
            Assert.AreEqual("Laboratory Name X", entry.Name);
            Assert.AreEqual("Laboratory Details X", entry.Details);
            Assert.AreEqual("_xxx", entry.Status.ID);
            Assert.AreEqual("Laboratory LastUpdated X", entry.LastUpdated);
        }
Beispiel #2
0
        public void RetrieveBasicInformationTest_withInvalidID_AdditonalInfo()
        {
            // Arrange
            Laboratory entry = new Laboratory("_aaa");

            // Act
            int count = entry.RetrieveBasicInformation(false);

            // Assert
            Assert.AreEqual(0, count);

            Assert.AreEqual("_aaa", entry.ID);
            Assert.IsNull(entry.Name);
            Assert.IsNull(entry.Details);
            Assert.IsNull(entry.Status);
            Assert.IsNull(entry.LastUpdated);
        }