public TeamCity(string host, string userName, string password, bool usingSSL = true) { var connectionConfig = new TeamCityConnectionSettingsBuilder().ToHost(host).UsingSSL().AsUser(userName, password).Build(); var bootstrapper = new BootStrapper(connectionConfig); Builds = bootstrapper.Get <IBuildService>(); QueuedBuilds = bootstrapper.Get <IQueuedBuildService>(); }
public void GetTeamCityService_FakeConnectionSettings_NotNull() { // Arrange var bootstrapper = new BootStrapper(A.Fake <ITeamCityConnectionSettings>()); // Act var teamCityService = bootstrapper.Get <IBuildService>(); // Assert teamCityService.Should().NotBeNull(); }