Skip to content

Commit 2c23fd5

Browse files
author
Lilian ARAGO
committed
Updated Integration / Unit tests
1 parent 86aee29 commit 2c23fd5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Octokit.GraphQL.IntegrationTests/Queries/RepositoryTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public async Task Query_Repository_Select_Inner_Simple_Fragment()
153153
var query = new Query()
154154
.Select(q => new
155155
{
156-
Name = q.Repository("octokit.net", "octokit").Select(fragment).SingleOrDefault()
156+
Name = q.Repository("octokit.net", "octokit", null).Select(fragment).SingleOrDefault()
157157
});
158158

159159

@@ -210,8 +210,8 @@ public async Task Query_Repository_Select_Object_Fragment_Twice()
210210
var query = new Query()
211211
.Select(q => new
212212
{
213-
repo1 = q.Repository("octokit.net", "octokit").Select(fragment).Single(),
214-
repo2 = q.Repository("octokit.graphql.net", "octokit").Select(fragment).Single(),
213+
repo1 = q.Repository("octokit.net", "octokit", null).Select(fragment).Single(),
214+
repo2 = q.Repository("octokit.graphql.net", "octokit", null).Select(fragment).Single(),
215215
});
216216

217217
var result = await Connection.Run(query);
@@ -233,7 +233,7 @@ public async Task Query_Repository_Select_Inner_Object_Fragment()
233233
var query = new Query()
234234
.Select(q => new
235235
{
236-
TestModel = q.Repository("octokit.net", "octokit").Select(fragment).SingleOrDefault()
236+
TestModel = q.Repository("octokit.net", "octokit", null).Select(fragment).SingleOrDefault()
237237
});
238238

239239

@@ -279,7 +279,7 @@ public async Task Query_Organization_Repositories_Select_Multiple_Object_Fragmen
279279
Member = organization.MembersWithRole(10, null, null, null).Nodes
280280
.Select(fragment).ToList().OrderBy(o => o.StringField1).First(),
281281

282-
MentionableUser = organization.Repository("octokit.net")
282+
MentionableUser = organization.Repository("octokit.net", null)
283283
.MentionableUsers(10, null, null, null, null).Nodes
284284
.Select(fragment).ToList().OrderBy(o => o.StringField1).First()
285285
});
@@ -370,7 +370,7 @@ public async Task Should_Query_RepositoryOwner_Repository_With_Fragment()
370370
var query = new Query().Select(q => new
371371
{
372372
repoOwner = q
373-
.Repository("octokit.net", "octokit")
373+
.Repository("octokit.net", "octokit", null)
374374
.Owner
375375
.Select(fragment)
376376
.SingleOrDefault()

Octokit.GraphQL.UnitTests/ExpressionRewiterTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public void Repository_Select_Use_Fragment_Twice()
6262
var query = new Query()
6363
.Select(q => new
6464
{
65-
repo1 = q.Repository("foo", "bar").Select(fragment).SingleOrDefault(),
66-
repo2 = q.Repository("foo", "bar").Select(fragment).SingleOrDefault()
65+
repo1 = q.Repository("foo", "bar", null).Select(fragment).SingleOrDefault(),
66+
repo2 = q.Repository("foo", "bar", null).Select(fragment).SingleOrDefault()
6767
});
6868

6969
Expression<Func<JObject, object>> expected = data =>

0 commit comments

Comments
 (0)