public static BuildSystem BuildSystem(this ICakeContext context) { if (context == null) { throw new ArgumentNullException("context"); } var appVeyorProvider = new AppVeyorProvider(context.Environment, context.ProcessRunner); var teamCityProvider = new TeamCityProvider(context.Environment); return(new BuildSystem(appVeyorProvider, teamCityProvider)); }
public static BuildSystem BuildSystem(this ICakeContext context) { if (context == null) { throw new ArgumentNullException("context"); } var appVeyorProvider = new AppVeyorProvider(context.Environment, context.ProcessRunner); var teamCityProvider = new TeamCityProvider(context.Environment, context.Log); var myGetProvider = new MyGetProvider(context.Environment); var bambooProvider = new BambooProvider(context.Environment); var continuaCIProvider = new ContinuaCIProvider(context.Environment); var jenkinsProvider = new JenkinsProvider(context.Environment); var bitriseProvider = new BitriseProvider(context.Environment); return(new BuildSystem(appVeyorProvider, teamCityProvider, myGetProvider, bambooProvider, continuaCIProvider, jenkinsProvider, bitriseProvider)); }
public static BuildSystem BuildSystem(this ICakeContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var appVeyorProvider = new AppVeyorProvider(context.Environment, context.ProcessRunner, context.Log); var teamCityProvider = new TeamCityProvider(context.Environment, context.Log); var myGetProvider = new MyGetProvider(context.Environment); var bambooProvider = new BambooProvider(context.Environment); var continuaCIProvider = new ContinuaCIProvider(context.Environment); var jenkinsProvider = new JenkinsProvider(context.Environment); var bitriseProvider = new BitriseProvider(context.Environment, context.ProcessRunner); var travisCIProvider = new TravisCIProvider(context.Environment, context.Log); var bitbucketPipelinesProvider = new BitbucketPipelinesProvider(context.Environment); var goCDProvider = new GoCDProvider(context.Environment, context.Log); var gitlabCIProvider = new GitLabCIProvider(context.Environment); var tfBuildProvider = new TFBuildProvider(context.Environment, context.Log); return(new BuildSystem(appVeyorProvider, teamCityProvider, myGetProvider, bambooProvider, continuaCIProvider, jenkinsProvider, bitriseProvider, travisCIProvider, bitbucketPipelinesProvider, goCDProvider, gitlabCIProvider, tfBuildProvider)); }
public TeamCityProviderTests() { repositoryMatcher = new RepositoryMatcher(Substitute.For <ILogger <RepositoryMatcher> >()); sut = new TeamCityProvider(repositoryMatcher, Substitute.For <ILogger <TeamCityProvider> >(), Substitute.For <IMemoryCache>()); }