public void TestLicenseAgreement()
        {
            var license = new CarrierLicense();

            license.Carrier           = Carrier.UPS;
            license.OriginCountryCode = "US";

            var response = Api.CarrierLicenseAgreements(license, Globals.DefaultSession).GetAwaiter().GetResult();

            Assert.True(response.Success);
            var responseLicense = response.ResponseObject as CarrierLicense;

            Assert.NotNull(responseLicense);
            Assert.NotNull(responseLicense.LicenseText);
        }
        //[Fact] // Need to have UPS account
        public void TestRegistration()
        {
            var license = new CarrierLicense();

            license.Carrier           = Carrier.UPS;
            license.OriginCountryCode = "US";

            var licResponse = Api.CarrierLicenseAgreements(license, Globals.DefaultSession).GetAwaiter().GetResult();

            var responseLicense = licResponse.ResponseObject as CarrierLicense;

            var registration = new CarrierAccount();

            registration.DeveloperId           = Globals.DefaultSession.GetConfigItem("DeveloperID");
            registration.Carrier               = Carrier.UPS;
            registration.PostalReportingNumber = "123456789";
            registration.TransactionId         = Guid.NewGuid().ToString().Substring(15);
            registration.AccountNumber         = "56V7A6";

            var accountAddress = AddressFluent <Address> .Create()
                                 .Company("Widgets")
                                 .Name("James Smith")
                                 .Phone("303-555-1213")
                                 .Email("*****@*****.**")
                                 .Residential(false)
                                 .AddressLines("4750 Walnut Street")
                                 .CityTown("Boulder")
                                 .StateProvince("CO")
                                 .PostalCode("80301")
                                 .CountryCode("US");

            registration.AccountAddress     = (Address)accountAddress;
            registration.ContactAddress     = (Address)accountAddress;
            registration.AccountPostalCode  = "80301";
            registration.AccountCountryCode = "US";
            registration.ContactTitle       = "Manager";
            registration.EndUserIP          = "10.100.20.20";
            registration.DeviceIdentity     = "84315tr3M5e4n";
            registration.LicenseText        = responseLicense.LicenseText;

            var response = Api.RegisterCarrierAccount(registration, Globals.DefaultSession).GetAwaiter().GetResult();

            Assert.True(response.Success);
            var responseAccount = response.ResponseObject as CarrierAccount;

            Assert.NotNull(responseAccount);
        }