public void Trying_To_Get_Changes_WithOut_Connecting_Throws_Exception() { TeamCityChanges client = new Client("localhost:81"); var changes = client.GetAllChanges(); //Assert: Exception }
public void Trying_To_Get_Plugins_WithOut_Connecting_Throws_Exception() { TeamCityServer client = new Client("localhost:81"); var plugins = client.GetAllServerPlugins(); //Assert: Exception }
private static void CallBuildStatusMethods() { TeamCityBuildStatus client = new Client("localhost:81"); client.Connect("admin", "qwerty"); var cancelledBuilds = client.GetCancelledBuildsByBuildConfigName("Local Debug Build"); var lastCancelled = client.GetLastCancelledBuildByBuildConfigName("Local Debug Build"); }
public void Trying_To_Get_UserGroups_WithOut_Connecting_Throws_Exception() { TeamCityUserGroups client = new Client("localhost:81"); var groups = client.GetAllUserGroups(); //Assert: Exception }
public void Trying_To_Get_Agents_WithOut_Connecting_Throws_Exception() { TeamCityAgents client = new Client("localhost:81"); var agents = client.GetAllAgents(); //Assert: Exception }
public void Instantiating_A_Client_With_A_Host_That_Doesnt_Exist_Throws_Exception() { TeamCityServer client = new Client("test:81"); client.Connect("admin", "qwerty"); var plugins = client.GetAllServerPlugins(); //Assert: Exception }
public void Instantiating_A_Client_With_A_Host_That_Doesnt_Exist_Throws_Exception() { TeamCityUserGroups client = new Client("test:81"); client.Connect("admin", "qwerty"); var userGroups = client.GetAllUserGroups(); //Assert: Exception }
public void Instantiating_A_Client_Without_Host_Throws_Exception() { TeamCityServer client = new Client(null); //Assert: Exception }
public void Trying_To_Get_Builds_WithOut_Connecting_Throws_Exception() { TeamCityBuilds client = new Client("localhost:81"); var builds = client.GetAllBuildTypes(); //Assert: Exception }
public void Trying_To_Get_SuccessfulBuilds_WithOut_Connecting_Throws_Exception() { TeamCityBuildStatus client = new Client("localhost:81"); string buildConfigName = "Local Debug Build"; var builds = client.GetSuccessfulBuildsByBuildConfigName(buildConfigName); //Assert: Exception }
public void Instantiating_A_Client_With_A_Host_That_Doesnt_Exist_Throws_Exception() { TeamCityBuildStatus client = new Client("test:81"); client.Connect("admin", "qwerty"); string buildConfigName = "Local Debug Build"; var builds = client.GetSuccessfulBuildsByBuildConfigName(buildConfigName); //Assert: Exception }