public void Setup()
 {
     _clientConfiguration = new ClientConfiguration
         {
             Domain = "domain",
             Password = "******",
             Port = 1234,
             UserName = "******"
         };
 }
Esempio n. 2
0
        public IClient CreateClient(ClientConfiguration clientConfiguration)
        {
            if (clientConfiguration == null)
                throw new ArgumentNullException("clientConfiguration");

            switch (clientConfiguration.ClientType)
            {
                case ClientType.TeamCity:
                    return new TeamCityClient(clientConfiguration);
                case ClientType.Hudson:
                    return new HudsonClient(clientConfiguration);
                case ClientType.Bamboo:
                    return new BambooClient(clientConfiguration);
            }
            //TODO
            return null;
        }
Esempio n. 3
0
 public Updater(ClientConfiguration config)
 {
     _config = config;
 }
 private void RunWorker(ClientConfiguration clientConfiguration)
 {
     _backgroundWorker.RunWorkerAsync(clientConfiguration);
 }