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); }
public void GatewayManagementObjectCreationWithinvalidFilePath() { testClient = new IBMWIoTP.GatewayManagement("propInvalid.text", true); }
public void GatewayManagementObjectCreationWithFilePath() { testClient = new IBMWIoTP.GatewayManagement("../../Resource/Gatewayprop.txt", true); }