Пример #1
0
 public IssueRepository(GithubIssueService githubIssueService, GithubMilestoneService milestoneService)
 {
     _githubIssueService = githubIssueService;
     _milestoneService = milestoneService;
 }
 private PackageIssueProvider CreatePackageIssueProvider(string packagesFile)
 {
     string githubKey = ConfigurationManager.AppSettings.Get("GithubKey");
     string githubSecret = ConfigurationManager.AppSettings.Get("GithubSecret");
     var httpClient = new HttpClientFactory().CreateHttpClient(githubKey, githubSecret);
     _githubMilestoneService = new GithubMilestoneService(httpClient);
     return new PackageIssueProvider(new PackageRepository(packagesFile), new IssueRepository(new GithubIssueService(httpClient), _githubMilestoneService), _githubMilestoneService);
 }