private void UserLogin() { System.Console.WriteLine("User sign up start"); _accessControl.CreateAndActivateUser(_username, _password, _email); System.Console.WriteLine("User sign up end"); System.Console.WriteLine("User log in start"); _accessControl.Login(_username, _password); System.Console.WriteLine("User log in end"); }
private static void Login(string baseUrl) { IdentityAccessClient client = new IdentityAccessClient(baseUrl); AccessControl control = new AccessControl(client, "pa$$word", "bruce"); //control.CreateAndActivateUser("user1", "123", "*****@*****.**"); control.Login("user1", "123"); //Scenario1(client); //OrderBookGenerator(client); System.Console.WriteLine(client.GetBalances()); //ScenarioResults(client); //System.Console.WriteLine(control.GetSecurityPairs()); //PermissionRepresentation[] rep = control.ListPermissions(); //rep[0].Allowed = true; //System.Console.WriteLine(control.CreateSecurityKeyPair("#1",rep)); client.Logout(); }