Some minor changes in ObservableUserEmailsClientTests.GetsCorrectUrlWithApiOption. Now ApiOptions.None is used instead of pre-configured class.

This commit is contained in:
aedampir@gmail.com
2016-03-15 19:05:03 +07:00
parent 531792ebe2
commit 9fd3c9b730
@@ -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));
}
}