private static void OnMasterLogin(ClientTester tester)
 {
     tester.ListAssets();
     tester.ListOttUsers();
     tester.ListHouseholdUsers();
     tester.GetHousehold();
     tester.SearchCatalog();
     tester.GetHouseholdDevice();
     tester.AddHouseholdDevice();
 }
        static void Main(string[] args)
        {
            ClientTester operatorTester = new ClientTester(new OnLogin(OnOperatorLogin), OPERATOR_USERNAME, OPERATOR_PASSWORD);
            ClientTester masterTester   = new ClientTester(new OnLogin(OnMasterLogin), MASTER_USERNAME, MASTER_PASSWORD, MASTER_DEVICE);

            while (masterTester.openTasks > 0 || operatorTester.openTasks > 0)
            {
                Thread.Sleep(100);
            }

            Console.WriteLine("Done");
            Environment.Exit(code);
        }
 private static void OnOperatorLogin(ClientTester tester)
 {
     tester.ListUserRoles();
     tester.ListUserRolesWithImpersonation();
 }
Beispiel #4
0
 private static void OnOperatorLogin(ClientTester tester)
 {
     tester.ListUserRoles();
 }