Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit efdcc70

Browse files
Missing things
1 parent a57418b commit efdcc70

File tree

3 files changed

+2
-39
lines changed

3 files changed

+2
-39
lines changed

src/BCC.Web.IntegrationTests/IntegrationTestsBase.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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
}

src/BCC.Web.IntegrationTests/Services/GitHubAppModelServiceBaseTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

src/BCC.Web.IntegrationTests/Services/GitHubGraphQLClientIntegrationTests.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)