Exemplo n.º 1
0
            public void Should_deep_clone_build_config()
            {
                var teamCityClient                = CreateTeamCityClient();
                var gitRepositoryFactory          = CreateGitRepositoryFactory();
                var gitLabClientFactory           = CreateGitLabClientFactory();
                var buildConfigXmlClient          = new BuildConfigXmlClient(teamCityClient, gitRepositoryFactory);
                var vcsRootHelper                 = new VcsRootHelper(teamCityClient, gitRepositoryFactory, gitLabClientFactory);
                var deleteClonedBuildChainUseCase = new DeepCloneBuildConfigUseCase(teamCityClient, vcsRootHelper, buildConfigXmlClient);

                deleteClonedBuildChainUseCase.Execute(sourceBuildId: 522, simulate: false, newNameSuffix: "Deep Clone Test 8").Wait();
            }
Exemplo n.º 2
0
 public DeepCloneBuildConfigCommand(DeepCloneBuildConfigUseCase deepDeepCloneBuildConfigUseCase)
 {
     _deepCloneBuildConfigUseCase = deepDeepCloneBuildConfigUseCase;
 }