This repository was archived by the owner on Dec 3, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-39
lines changed
src/BCC.Web.IntegrationTests Expand file tree Collapse file tree 3 files changed +2
-39
lines changed Original file line number Diff line number Diff line change @@ -38,37 +38,16 @@ protected IGitHubClient CreateGitHubAppClient()
3838 return gitHubClientFactory . CreateAppClient ( tokenGenerator ) ;
3939 }
4040
41- protected IGitHubGraphQLClient CreateGitHubAppGraphQLClient ( )
42- {
43- var gitHubClientFactory = CreateGitHubAppClientFactory ( ) ;
44- var tokenGenerator = CreateTokenGenerator ( ) ;
45- return gitHubClientFactory . CreateAppGraphQLClient ( tokenGenerator ) ;
46- }
47-
4841 protected async Task < IGitHubClient > CreateGitHubAppClientForLogin ( string login )
4942 {
5043 var gitHubClientFactory = CreateGitHubAppClientFactory ( ) ;
5144 var tokenGenerator = CreateTokenGenerator ( ) ;
5245 return await gitHubClientFactory . CreateAppClientForLoginAsync ( tokenGenerator , login ) ;
5346 }
54-
55- protected async Task < IGitHubGraphQLClient > CreateGitHubAppGraphQLClientForLogin ( string login )
56- {
57- var gitHubClientFactory = CreateGitHubAppClientFactory ( ) ;
58- var tokenGenerator = CreateTokenGenerator ( ) ;
59- return await gitHubClientFactory . CreateAppGraphQLClientForLoginAsync ( tokenGenerator , login ) ;
60- }
61-
6247 protected IGitHubClient CreateGitHubTokenClient ( )
6348 {
6449 var gitHubClientFactory = new GitHubClientFactory ( ) ;
6550 return gitHubClientFactory . CreateClient ( TestToken ) ;
6651 }
67-
68- protected IGitHubGraphQLClient CreateGitHubGraphQLTokenClient ( )
69- {
70- var gitHubClientFactory = new GitHubClientFactory ( ) ;
71- return gitHubClientFactory . CreateGraphQLClient ( TestToken ) ;
72- }
7352 }
7453}
Original file line number Diff line number Diff line change @@ -27,17 +27,15 @@ public async Task ShouldNotGetFileThatDoesNotExist()
2727
2828 private TestAppModelService CreateTarget ( )
2929 {
30- return new TestAppModelService ( CreateGitHubTokenClient ( ) , CreateGitHubGraphQLTokenClient ( ) ) ;
30+ return new TestAppModelService ( CreateGitHubTokenClient ( ) ) ;
3131 }
3232
3333 private class TestAppModelService : GitHubAppModelServiceBase
3434 {
3535 private readonly IGitHubClient _gitHubClient ;
36- private readonly IGitHubGraphQLClient _graphQLClient ;
3736
38- public TestAppModelService ( IGitHubClient gitHubClient , IGitHubGraphQLClient graphQLClient )
37+ public TestAppModelService ( IGitHubClient gitHubClient )
3938 {
40- _graphQLClient = graphQLClient ;
4139 _gitHubClient = gitHubClient ;
4240 }
4341
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments