public void Stop_App_As_User() { IVcapClient client = new VcapClient("http://api.ironfoundry.me"); client.Login("*****@*****.**", "password"); VcapUser user = client.GetUser("otheruser"); client.ProxyAs(user); client.Stop("appname"); }
public void Get_All_Users_And_Apps() { var client = new VcapClient("http://api.ironfoundry.me"); client.Login("*****@*****.**", "password"); var users = client.GetUsers(); Assert.NotEmpty(users); foreach (var user in users) { Console.WriteLine("User: {0}", user.Email); client.ProxyAs(user); var apps = client.GetApplications(); foreach (var app in apps) { Console.WriteLine("\t\tApp: {0}", app.Name); } } }