public void testRetrack()
        {
            Tracking tracking = new Tracking("RT224265042HK");

            tracking.slug = "hong-kong-post";
            try{
                connection.retrack(tracking);
                Assert.IsTrue(false);
            }catch (Exception e) {
                Assert.IsTrue(e.Message.Contains("4016"));
                Assert.IsTrue(e.Message.Contains("Retrack is not allowed. You can only retrack each shipment once."));
            }
        }
예제 #2
0
        public void testRetrack()
        {
            Tracking tracking = new Tracking("00340433836621378669");

            tracking.slug = "dhl-germany";
            try
            {
                connection.retrack(tracking);
                Assert.IsTrue(false);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                Assert.IsTrue(e.Message.Contains("4016"));
                Assert.IsTrue(e.Message.Contains("Retrack is not allowed. You can only retrack each shipment once."));
            }
        }