61 lines
2.1 KiB
C#
61 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Pluto.Registration
|
|
{
|
|
/// <summary>
|
|
/// Only used for Debugging / Testing
|
|
/// </summary>
|
|
public static class DEBUGGING_ONLY
|
|
{
|
|
/// <summary>
|
|
/// Called in Debug Mode to allow us to step into specific things and
|
|
/// easier test them straight thru the service
|
|
/// </summary>
|
|
internal static void DEBUGSTEP_INTO()
|
|
{
|
|
Registration.Setup_Logger();
|
|
RegistrationTest();
|
|
}
|
|
|
|
internal static void RegistrationTest()
|
|
{
|
|
//const string TEST_SYSTEM_API_KEY = "$BBB8BDE06BC210B44F6#L";
|
|
//const string TEST_SYSTEM_API_KEY2 = "$9F0A95844FB07804892#M";
|
|
//const string TEST_HOST_GUID = "c8feacf2-6170-420a-843f-ef905784ec5b";
|
|
//const string TEST_HOST_GUID2 = "c8feacf2-6170-420a-843f-ef905784ec5b";
|
|
|
|
//// Check Connectivity
|
|
//bool bHasAccess = DataAccessLayer.VerifyConnectivity();
|
|
|
|
//// Instantiate Registration Object
|
|
//Registration registration = new Registration();
|
|
|
|
//// Test Registration of a new Practice
|
|
//string strApiKey;
|
|
//string strPin;
|
|
//Server server = new Server();
|
|
//server.HostGUID = "7c18db98-3c34-4382-963c-1175f0d20f44";
|
|
//server.InternalIP = "10.24.52.25";
|
|
//server.Port = 1945;
|
|
//server.ExternalIP = "";
|
|
//bool bSuccess = registration.RegisterNewServerPractice("Happy Valley Medical Clinic (McK)", server, "Medisoft", out strApiKey, out strPin);
|
|
|
|
//Host host = registration.GetApiHostMobile(TEST_SYSTEM_API_KEY);
|
|
//host = registration.GetApiHostWifi(TEST_SYSTEM_API_KEY2);
|
|
//Client[] clients = registration.GetClients(true);
|
|
//if (clients != null)
|
|
//{
|
|
// foreach (Client client in clients)
|
|
// {
|
|
// string d = client.systemApiKey;
|
|
// }
|
|
//}
|
|
}
|
|
|
|
|
|
}
|
|
}
|