public async void SingleMilestone3() { var gitHubClient = ClientBuilder.Build(); var fileSystem = new FileSystem(); var currentDirectory = Environment.CurrentDirectory; var configuration = ConfigurationProvider.Provide(currentDirectory, fileSystem); var releaseNotesBuilder = new ReleaseNotesBuilder(new DefaultGitHubClient(gitHubClient, "Chocolatey", "ChocolateyGUI"), "Chocolatey", "ChocolateyGUI", "0.13.0", configuration); var result = await releaseNotesBuilder.BuildReleaseNotes(); Debug.WriteLine(result); ClipBoardHelper.SetClipboard(result); }
private static void AcceptTest(int commits, params Issue[] issues) { var fakeClient = new FakeGitHubClient(); var fileSystem = new FileSystem(); var currentDirectory = Environment.CurrentDirectory; var configuration = ConfigurationProvider.Provide(currentDirectory, fileSystem); fakeClient.Milestones.Add(CreateMilestone("1.2.3")); fakeClient.NumberOfCommits = commits; foreach (var issue in issues) { fakeClient.Issues.Add(issue); } var builder = new ReleaseNotesBuilder(fakeClient, "TestUser", "FakeRepository", "1.2.3", configuration); var notes = builder.BuildReleaseNotes().Result; Approvals.Verify(notes); }