Exemplo n.º 1
0
 public void Check_Fedex_Tracking_Number_With_10_Checksum()
 {
     Assert.IsTrue(FedexTracker.IsFedExExpress("966645788660"));
 }
Exemplo n.º 2
0
 public void Check_Valid_FedExSmartPost()
 {
     Assert.IsTrue(FedexTracker.IsFedExSmartPost("9274890100130166388000"));
 }
Exemplo n.º 3
0
 public void Chec_Ups_Number_Doesnt_Match_Fedex_Format()
 {
     Assert.IsFalse(FedexTracker.IsFedExExpress("1Z039AF20326069009") || FedexTracker.IsFedExGround("1Z039AF20326069009"));
 }
Exemplo n.º 4
0
 public void Check_Valid_Fedex_Tracking_Number()
 {
     Assert.IsTrue(FedexTracker.IsFedExExpress("012345678983"));
 }
Exemplo n.º 5
0
 public void Check_Valid_Fedex_Tracking_Number2()
 {
     Assert.IsTrue(FedexTracker.IsFedExExpress("864737425688"));
 }
Exemplo n.º 6
0
 public void Check_Valid_Fedex_Ground_Number3()
 {
     Assert.IsTrue(FedexTracker.IsFedExGround("230708973660298"));
 }
Exemplo n.º 7
0
 public void Check_Valid_Fedex_Ground_Number2()
 {
     Assert.IsTrue(FedexTracker.IsFedExGround("729445719235295"));
 }
Exemplo n.º 8
0
 public void Check_Valid_Fedex_Ground_Number()
 {
     Assert.IsTrue(FedexTracker.IsFedExGround("987654312345672"));
 }
Exemplo n.º 9
0
        public void VerifyRequestProperties()
        {
            _tracker = new FedexTracker(_trackService, "key", "password", "accountNumber", "meterNumber", true);

            _trackService.Expect(x => x.track(Arg<TrackRequest>.Matches(y =>
                        y.IncludeDetailedScans == true
                        && y.IncludeDetailedScansSpecified == true
                        && y.WebAuthenticationDetail.UserCredential.Key == "key"
                        && y.WebAuthenticationDetail.UserCredential.Password == "password"
                        && y.ClientDetail.AccountNumber == "accountNumber"
                        && y.ClientDetail.MeterNumber == "meterNumber"
                        && y.PackageIdentifier.Value == "9274890100130166388000"
                        && y.PackageIdentifier.Type == FedexTrackWebService.TrackIdentifierType.TRACKING_NUMBER_OR_DOORTAG
                    )));

            var td = _tracker.GetTrackingData("9274890100130166388000");

            _trackService.VerifyAllExpectations();
        }
Exemplo n.º 10
0
        public void Set_Production_Tracking_URL()
        {
            _trackService.Expect(x => x.Url).SetPropertyWithArgument("https://ws.fedex.com/web-services");

            _tracker = new FedexTracker(_trackService, "key", "password", "accountNumber", "meterNumber", true);
            var td = _tracker.GetTrackingData("9274890100130166388000");

            _trackService.VerifyAllExpectations();
        }