mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 20:45:51 +00:00
Changed repos to a specialized collection
This commit is contained in:
@@ -47,9 +47,9 @@ public class SearchClientTests
|
||||
public async Task SearchForWordInCode()
|
||||
{
|
||||
var request = new SearchIssuesRequest("windows");
|
||||
request.Repos = new Collection<string> {
|
||||
"aspnet/dnx",
|
||||
"aspnet/dnvm"
|
||||
request.Repos = new RepositoryCollection {
|
||||
{ "aspnet", "dnx" },
|
||||
{ "aspnet", "dnvm" }
|
||||
};
|
||||
|
||||
request.SortField = IssueSearchSort.Created;
|
||||
@@ -64,7 +64,7 @@ public class SearchClientTests
|
||||
public async Task SearchForOpenIssues()
|
||||
{
|
||||
var request = new SearchIssuesRequest("phone");
|
||||
request.Repos.Add("caliburn-micro/caliburn.micro");
|
||||
request.Repos.Add("caliburn-micro", "caliburn.micro");
|
||||
request.State = ItemState.Open;
|
||||
|
||||
var issues = await _gitHubClient.Search.SearchIssues(request);
|
||||
@@ -76,7 +76,7 @@ public class SearchClientTests
|
||||
public async Task SearchForAllIssuesWithouTaskUsingTerm()
|
||||
{
|
||||
var request = new SearchIssuesRequest();
|
||||
request.Repos.Add("caliburn-micro/caliburn.micro");
|
||||
request.Repos.Add("caliburn-micro", "caliburn.micro");
|
||||
|
||||
var issues = await _gitHubClient.Search.SearchIssues(request);
|
||||
|
||||
@@ -91,7 +91,7 @@ public class SearchClientTests
|
||||
public async Task SearchForAllIssuesUsingTerm()
|
||||
{
|
||||
var request = new SearchIssuesRequest("phone");
|
||||
request.Repos.Add("caliburn-micro/caliburn.micro");
|
||||
request.Repos.Add("caliburn-micro", "caliburn.micro");
|
||||
|
||||
var issues = await _gitHubClient.Search.SearchIssues(request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user