예제 #1
0
파일: Test.cs 프로젝트: robotoworks/specapi
        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
파일: Test.cs 프로젝트: robotoworks/specapi
        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
                }
            });
        }