mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
Some minor changes in ObservableUserEmailsClientTests.GetsCorrectUrlWithApiOption. Now ApiOptions.None is used instead of pre-configured class.
This commit is contained in:
@@ -38,16 +38,10 @@ namespace Octokit.Tests
|
||||
var github = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableUserEmailsClient(github);
|
||||
|
||||
var options = new ApiOptions
|
||||
{
|
||||
StartPage = 1,
|
||||
PageCount = 1
|
||||
};
|
||||
|
||||
client.GetAll(options);
|
||||
client.GetAll(ApiOptions.None);
|
||||
|
||||
github.Connection.Received(1).GetResponse<List<EmailAddress>>(_expectedUri,
|
||||
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 1));
|
||||
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user