Exemplo n.º 1
0
        public void GatewayManagementObjectCreationWithParams()
        {
            Dictionary <string, string> data = IBMWIoTP.DeviceClient.parseFile("../../Resource/Gatewayprop.txt", "## Gateway Registration detail");

            if (!data.TryGetValue("Organization-ID", out orgId) ||
                !data.TryGetValue("Device-Type", out deviceType) ||
                !data.TryGetValue("Device-ID", out deviceID) ||
                !data.TryGetValue("Authentication-Method", out authmethod) ||
                !data.TryGetValue("Authentication-Token", out authtoken))
            {
                throw new Exception("Invalid property file");
            }
            testClient = new IBMWIoTP.GatewayManagement(orgId, deviceType, deviceID, authmethod, authtoken, true);
        }
Exemplo n.º 2
0
 public void GatewayManagementObjectCreationWithinvalidFilePath()
 {
     testClient = new IBMWIoTP.GatewayManagement("propInvalid.text", true);
 }
Exemplo n.º 3
0
 public void GatewayManagementObjectCreationWithFilePath()
 {
     testClient = new IBMWIoTP.GatewayManagement("../../Resource/Gatewayprop.txt", true);
 }