public void DeviceManagementObjectCreationWithParams() { Dictionary <string, string> data = IBMWIoTP.DeviceClient.parseFile("../../Resource/prop.txt", "## Device 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.DeviceManagement(orgId, deviceType, deviceID, authmethod, authtoken, true); }
public void DeviceManagementObjectCreationWithinvalidFilePath() { testClient = new IBMWIoTP.DeviceManagement("propInvalid.text", true); }
public void Setup() { testClient = new IBMWIoTP.DeviceManagement("../../Resource/prop.txt", true); }
public void DeviceManagementObjectCreationWithFilePath() { testClient = new IBMWIoTP.DeviceManagement("../../Resource/prop.txt", true); }
public void Setup() { IBMWIoTP.DeviceManagement.AutoReconnect = false; testClient = new IBMWIoTP.DeviceManagement("../../Resource/prop.txt", true); }