public void assignACurrentBaselineToElementTest() { RemoteDataStoreService target = new RemoteDataStoreService(); Guid pReqID = new Guid(); string pEID = "TRAIN3"; string pBLVersion = "1.0.0.0"; DateTime pExpDate = DateTime.Now; target.assignACurrentBaselineToElement(pReqID, pEID, pBLVersion, pExpDate); Assert.IsTrue(target.checkIfElementExists(pEID)); target.unassignCurrentBaselineFromElement(pEID); Assert.IsTrue(target.checkIfElementExists(pEID)); }
public void checkIfElementExistsTest() { RemoteDataStoreService target = new RemoteDataStoreService(); string pEID = "TRAIN1"; bool expected = true; bool actual; actual = target.checkIfElementExists(pEID); Assert.AreEqual(expected, actual); pEID = "TRAIN11"; expected = false; actual = target.checkIfElementExists(pEID); Assert.AreEqual(expected, actual); }