示例#1
0
        public void ListUserRepositoriesTest()
        {
            var api = new GithubAPI ();

            api.ListUserRepositories (
                new ListUserRepositoriesRequest("fluxtah") {
                    Sort = "full_name",
                    Direction = "asc",

                    On200 = (repositories) => {
                        // TODO: Handle a 200 response
                    },
                    OnOther = (response) => {
                        // TODO: Handle any other response
                    }
                });
        }
示例#2
0
        public void ListRepositoriesTest()
        {
            var api = new GithubAPI ();

            api.ListRepositories (new ListRepositoriesRequest {
                Sort = "full_name",
                Direction = "asc",

                On200 = (repositories) => {

                },
                On401 = (error) =>  {

                },
                OnOther = (response) => {
                    // TODO: handle any other response that
                    // is otherwise not handled by this responder
                    // or not handled by the user
                }
            });
        }