public void Various() { var av = BuildServiceFactory.Create(BuildServiceProvider.AppVeyor, _webFactory.Object, _netio.Object, _garbage.Object); var tc = BuildServiceFactory.Create(BuildServiceProvider.TeamCity, _webFactory.Object, _netio.Object, _garbage.Object); var suc = BuildServiceFactory.Create(BuildServiceProvider.Succeeding, _webFactory.Object, _netio.Object, _garbage.Object); var fail = BuildServiceFactory.Create(BuildServiceProvider.Failing, _webFactory.Object, _netio.Object, _garbage.Object); Assert.IsNotNull(av); Assert.IsNotNull(tc); Assert.IsNotNull(suc); Assert.IsNotNull(fail); }
public override void Check() { lock (this) { _currentBuild = null; var proj = Context.Project.SelectedProject; _currentBuild = BuildServiceFactory.Create(proj.Provider, Context.WebFactory, Context.WebUtility, Context.Garbage); var config = Context.ConfigurationService.GetBuildParams(proj.Slug); var state = _currentBuild.StartBuild(config); ProcessBuildState(state, proj.Title); } }
public void RejectInvalid() { const BuildServiceProvider provider = (BuildServiceProvider)9999; var av = BuildServiceFactory.Create(provider, _webFactory.Object, _netio.Object, _garbage.Object); }