GetAllForCurrent() public method

Gets all repositories owned by the current user.
See the API documentation for more information. The default page size on GitHub.com is 30.
Thrown if the client is not authenticated. Thrown when a general API error occurs.
public GetAllForCurrent ( ) : Task>
return Task>
コード例 #1
0
            public void RequestsTheCorrectUrlAndReturnsOrganizations()
            {
                var connection = Substitute.For<IApiConnection>();
                var client = new RepositoriesClient(connection);

                client.GetAllForCurrent();

                connection.Received()
                    .GetAll<Repository>(Arg.Is<Uri>(u => u.ToString() == "user/repos"));
            }