Esempio n. 1
0
        public void ReleaseNotesGenerator_CreatesAFileContaingReleaseNotes()
        {
            var generator            = new ReleaseNotesGenerator(new BasicOctopusToTeamcityMappingStrategy(), new OctopusDeployService(new OctopusDeploySettings()), new OctopusDeploySettings(), new BasicBuildIdToTagNameStratergy(), new GitHubService(new GitSettings()), new JiraService(new JiraSettings()));
            var releaseNotesFilePath = generator.CreateReleaseNotes("3dd8fb2");

            Assert.IsTrue(File.Exists(releaseNotesFilePath));
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var argumentProcessor       = new ArgumentProcessor(args);
            var contentPackageGenerator = new Business.ContentPackageGenerator(
                new OctopusDeployService(new OctopusDeploySettings()), new OctopusDeploySettings(),
                new DropBoxService(new DropBoxSettings()));
            var artifactDetails = contentPackageGenerator.CreatePackage(argumentProcessor.SerializationFolder,
                                                                        argumentProcessor.CurrentBuildId, argumentProcessor.ExtractPath);

            var releaseNotesGenereator = new ReleaseNotesGenerator(new BasicOctopusToTeamcityMappingStrategy(), new OctopusDeployService(new OctopusDeploySettings()), new OctopusDeploySettings(), new BasicBuildIdToTagNameStratergy(), new GitHubService(new GitSettings()), new JiraService(new JiraSettings()));
            var releaseNotesFilePath   = releaseNotesGenereator.CreateReleaseNotes(argumentProcessor.CurrentCommitId);

            artifactDetails.ReleaseNotesFilePath = releaseNotesFilePath;

            ArtifactMover.Move(artifactDetails, argumentProcessor.PackageDestinationFolder);
        }
 public void ReleaseNotesGenerator_CreatesAFileContaingReleaseNotes()
 {
     var generator = new ReleaseNotesGenerator(new BasicOctopusToTeamcityMappingStrategy(), new OctopusDeployService(new OctopusDeploySettings()), new OctopusDeploySettings(), new BasicBuildIdToTagNameStratergy(), new GitHubService(new GitSettings()), new JiraService(new JiraSettings())  );
     var releaseNotesFilePath = generator.CreateReleaseNotes("3dd8fb2");
     Assert.IsTrue(File.Exists(releaseNotesFilePath)); 
 }