Ejemplo n.º 1
0
        public void Parse_Received_Detail_Verify_Activity()
        {
            Activity activity = TrackingResponse.ParseActivityString("Electronic Shipping Info Received, April 16, 2008");

            Assert.AreEqual("Electronic Shipping Info Received", activity.ShortDescription);
            Assert.AreEqual(DateTime.Parse("4-16-08"), activity.Timestamp);
        }
Ejemplo n.º 2
0
        public void Parse_Step_Detail_Verify_Activity()
        {
            Activity activity = TrackingResponse.ParseActivityString("Processed, April 23, 2008, 10:14 pm, LAS VEGAS, NV 89119");

            Assert.AreEqual("Processed", activity.ShortDescription);
            Assert.AreEqual(DateTime.Parse("4-23-08 10:14 pm"), activity.Timestamp);
            Assert.AreEqual("LAS VEGAS, NV 89119", activity.LocationDescription);
        }
Ejemplo n.º 3
0
        public void Parse_Step_Delivered_Summary_Verify_Activity()
        {
            var activity = TrackingResponse.ParseActivityString("Your item was delivered at 5:39 pm on January 11, 2008 in KENT, WA 98031. The item was signed for by Z ALVAREZ. Additional information for this item is stored in files offline.");

            Assert.AreEqual("Your item was delivered", activity.ShortDescription);
            Assert.AreEqual(DateTime.Parse("1-11-08 5:39 pm"), activity.Timestamp);
            Assert.AreEqual("KENT, WA 98031", activity.LocationDescription);
        }
Ejemplo n.º 4
0
        public void Parse_Step_Delivered_Verify_Activity()
        {
            Activity activity =
                TrackingResponse.ParseActivityString("Your item was delivered at 9:59 am on April 25, 2008 in RICHMOND, VA 23233.");

            Assert.AreEqual("Your item was delivered", activity.ShortDescription);
            Assert.AreEqual(DateTime.Parse("4-25-08 9:59 am"), activity.Timestamp);
            Assert.AreEqual("RICHMOND, VA 23233", activity.LocationDescription);
        }
Ejemplo n.º 5
0
        public void Parse_Step_Unrecognized_Verify_Activity()
        {
            Activity activity = TrackingResponse.ParseActivityString("This is an unsupported message!");

            Assert.AreEqual("This is an unsupported message!", activity.ShortDescription);
        }