public void Configure(TeamProjectConfig config, NetworkCredential credentials = null)
 {
     _config      = config;
     _credentials = credentials;
     EnsureCollection();
     _workItemClient.Configure(this);
     _testPlanClient.Configure(this);
 }
示例#2
0
        public void Configure(IMigrationClientConfig config, NetworkCredential credentials = null)
        {
            if (config is null)
            {
                throw new ArgumentNullException(nameof(config));
            }
            if (!(config is TfsTeamProjectConfig))
            {
                throw new ArgumentOutOfRangeException(string.Format("{0} needs to be of type {1}", nameof(config), nameof(TfsTeamProjectConfig)));
            }

            _config      = (TfsTeamProjectConfig)config;
            _credentials = credentials;
            EnsureCollection();
            _workItemClient.Configure(this);
            _testPlanClient.Configure(this);
        }