public void testGetLastCheckpointID() { Tracking trackingGet1 = new Tracking("whatever"); trackingGet1.id = "53d1e35405e166704ea8adb9"; Checkpoint newCheckpoint = connection.getLastCheckpoint(trackingGet1); Assert.AreEqual("Network movement commenced", newCheckpoint.message); Assert.AreEqual("WIGAN HUB", newCheckpoint.countryName); Assert.AreEqual("InTransit", newCheckpoint.tag); }
public void testGetLastCheckpointID() { Tracking trackingGet1 = new Tracking("whatever"); trackingGet1.id = "5550529d74346ecd5099ab47"; Checkpoint newCheckpoint = connection.getLastCheckpoint(trackingGet1); Assert.IsTrue(!string.IsNullOrEmpty(newCheckpoint.message)); Assert.AreEqual(null, newCheckpoint.countryName); Assert.AreEqual("Delivered", newCheckpoint.tag); }