Esempio n. 1
0
        public void testMarkTrackingAsCompeleted()
        {
            Tracking tracking = new Tracking(trackingNumberMark);

            tracking.slug = slugMark;
            Tracking trackingMarked = connection.markTrackingAsCompeleted(tracking, "DELIVERED");

            Assert.AreEqual(trackingMarked.tag, StatusTag.Delivered);
            trackingMarked = connection.markTrackingAsCompeleted(tracking, "LOST");
            Assert.AreEqual(trackingMarked.tag, StatusTag.Exception);
        }