Exemple #1
0
        private static async Task <string> ExportReleases(GitHubClient github, string owner, string repository, string tagName, Config configuration)
        {
            var releaseNotesExporter = new ReleaseNotesExporter(new DefaultGitHubClient(github, owner, repository), configuration);

            var result = await releaseNotesExporter.ExportReleaseNotes(tagName);

            return(result);
        }
Exemple #2
0
        private static void AcceptTest(Config configuration, params Release[] releases)
        {
            var fakeClient = new FakeGitHubClient();

            foreach (var release in releases)
            {
                fakeClient.Releases.Add(release);
            }

            var builder = new ReleaseNotesExporter(fakeClient, configuration);
            var notes   = builder.ExportReleaseNotes(null).Result;

            Approvals.Verify(notes);
        }