Beispiel #1
0
        public void Orca_Get_Device_Key_Request()
        {
            _config.UserName  = "******";
            _config.Password  = "******";
            _config.SiteId    = 101436;
            _config.LicenseId = 101433;

            var _orcaService = new HpsOrcaService(_config);

            var response = _orcaService.GetDeviceAPIKey();

            Assert.IsNotNull(response);
        }
Beispiel #2
0
        public void Orca_Get_Device_Parameters_Request()
        {
            _config.SecretApiKey = apiKey;

            var _orcaService = new HpsOrcaService(_config);

            try
            {
                var response = _orcaService.GetDeviceParameters();
                Assert.IsNotNull(response);
            }catch (Exception e)
            {
                //no parameters throws server 400 messages.  Not really an error.
            }
        }
Beispiel #3
0
        public void Orca_Activate_Device_Request()
        {
            _config.UserName = "******";
            _config.Password = "******";

            var _orcaService = new HpsOrcaService(_config);

            var response = _orcaService.ActivateDevice("777700857994", activationCode);

            if (response != null)
            {
                apiKey = response.SecretApiKey;
            }

            Assert.IsNotNull(response);
        }
Beispiel #4
0
        public void Orca_Activation_Request()
        {
            _config.UserName = "******";
            _config.Password = "******";

            var _orcaService = new HpsOrcaService(_config);

            var response = _orcaService.DeviceActivationRequest("777700857994", "*****@*****.**");

            if (response != null)
            {
                activationCode = response.ActivationCode;
            }

            Assert.IsNotNull(response);
        }