Exemplo n.º 1
0
        public void RegisterLicensedLpAux_ValidRegistrationInfoWithReccurrence_AddsLPAuxSuccessfully()
        {
            LicensedLpAuxRegistration licensedLpAuxRegistration = new LicensedLpAuxRegistration
            {
                CallSign           = "BLN00751",
                Channels           = new[] { 6, 7 },
                FriendlyName       = "Licensed LPAux Registration",
                IsRecurred         = true,
                IsReoccurenceDaily = true,
                StartDate          = DateTime.Today.ToString("MM-dd-yyyy"),
                EndDate            = DateTime.Today.ToString("MM-dd-yyyy"),
                StartTime          = DateTime.Now.ToString("HH:mm:ss"),
                EndTime            = DateTime.Now.AddHours(2).ToString("HH:mm:ss"),
                Latitude           = "40.7779169",
                Longitude          = "-74.7922202",
            };

            Result result = this.RegisteredDeviceResult();

            this.whitespacesDataClient.AddIncumbentIRequestParameters = (request) => result;

            string actualMessage = this.whitespacesManager.RegisterLicensedLpAux(licensedLpAuxRegistration, accessToken);

            Assert.AreEqual("Device Registered successfully.", actualMessage);
        }
Exemplo n.º 2
0
        public void RegisterUnLicensedLpAux_ValidRegistrationInfoWithAllMandatoryParameters_RegistersUnlicensedLPAuxSuccessfully()
        {
            LicensedLpAuxRegistration unLicensedLpAuxRegistration = new LicensedLpAuxRegistration
            {
                UlsFileNumber = "0005122780",
                Channels      = new[] { 6, 7 },
                StartDate     = DateTime.Today.ToString("MM-dd-yyyy"),
                EndDate       = DateTime.Today.AddDays(10).ToString("MM-dd-yyyy"),
                StartTime     = DateTime.Now.ToString("HH:mm:ss"),
                EndTime       = DateTime.Now.AddHours(2).ToString("HH:mm:ss"),
                Latitude      = "40.7779169",
                Longitude     = "-74.7922202",
                Name          = "Rajendra Gola",
            };

            Result result = this.RegisteredDeviceResult();

            this.whitespacesDataClient.AddIncumbentIRequestParameters = (request) => result;

            string actualMessage = this.whitespacesManager.RegisterUnLicensedLpAux(unLicensedLpAuxRegistration, accessToken);

            Assert.AreEqual("Device Registered successfully.", actualMessage);
        }
Exemplo n.º 3
0
        public void RegisterUnLicensedLpAux_NullAsAccessToken_ArgumentNullException()
        {
            LicensedLpAuxRegistration unLicensedLpAuxRegistration = new LicensedLpAuxRegistration();

            this.whitespacesManager.RegisterUnLicensedLpAux(unLicensedLpAuxRegistration, null);
        }