public void should_load_Central()
        {
            var practice = _activationService.GetCentral(_central).Result;

            Assert.IsNotNull(practice);
            Console.WriteLine(practice);
        }
 public IActionResult FindCentral()
 {
     try
     {
         var fac = _activationService.GetCentral();
         return(Ok(fac));
     }
     catch (Exception e)
     {
         Log.Debug($"{e}");
         return(StatusCode(500, $"{e.Message}"));
     }
 }
Exemple #3
0
        private async void VerifyCentral()
        {
            _dialogService.ShowWait("Verifying,Please wait...");
            Central = new ServerConfig("hapi.central");
            var practice = await _activationService.GetCentral(CentralAddress);

            _dialogService.HideWait();

            if (null != practice)
            {
                //Activate Device

                Central = ServerConfig.CreateCentral(practice, CentralAddress);
            }
            else
            {
                _dialogService.Alert("Address could not be verified");
            }
            CentralName = Central.Name;
        }