/// <summary> /// Initializes a new instance of the <see cref="TestTrackConnector"/> class. /// </summary> /// <param name="userName"> /// The user name. /// </param> /// <param name="password"> /// The password. /// </param> public TestTrackConnector(string userName, string password, bool forceConnection, IIssueManagementConnection connector) { this.connector = connector; try { if (forceConnection) { connector.Close(); } if (!connector.IsConnected) { this.server = ""; this.project = ""; if (File.Exists(configFile)) { this.GetServerAndProject(); } connector.ConnectToProject(this.server, this.project, this.userName, this.password); } } catch (Exception ex) { Debug.WriteLine(ex.Message); } }
/// <summary> /// Associates the project. /// </summary> /// <param name="project">The project.</param> /// <param name="configuration">The configuration.</param> /// <param name="connector">The connector.</param> public void AssociateProject(Resource project, ISonarConfiguration configuration, IIssueManagementConnection connector, string vsVersion) { this.associatedProject = project; this.userConf = configuration; this.testTrackIntegration = new TestTrackConnector(configuration.Username, configuration.Password, true, connector); }
/// <summary> /// Initializes a new instance of the <see cref="TtDefect"/> class. /// </summary> /// <param name="connection"> /// The connection. /// </param> /// <param name="TTNumber"> /// The tt number. /// </param> public TtDefect(IIssueManagementConnection connection, long TTNumber) { connection.EnableFormattedTextSupport(); this.defect = connection.getDefect(TTNumber); }