{"action":"created","comment":{"url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/comments/199061696","pull_request_review_id":133106173,"id":199061696,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTA2MTY5Ng==","diff_hunk":"@@ -0,0 +1,51 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Net;\n+\n+namespace ReadingList.Api\n+{\n+    public class ExceptionToStatusCodeProvider\n+    {\n+        private readonly Dictionary<Type, HttpStatusCode> _source;\n+        private readonly Type _baseCaseExceptionType;\n+\n+        public ExceptionToStatusCodeProvider(Dictionary<HttpStatusCode, Type[]> map)\n+        {\n+            _baseCaseExceptionType = typeof(Exception);\n+            _source = InitializeExceptionToStatusCodeMap(map);","path":"ReadingList.Api/ExceptionToStatusCodeProvider.cs","position":16,"original_position":16,"commit_id":"8dbdd0e14e4ba1b5aeaf1cb21dacbba6667d40fb","original_commit_id":"8dbdd0e14e4ba1b5aeaf1cb21dacbba6667d40fb","user":{"login":"Happi-cat","id":744254,"node_id":"MDQ6VXNlcjc0NDI1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/744254?v=4","gravatar_id":"","url":"https://api.github.com/users/Happi-cat","html_url":"https://github.com/Happi-cat","followers_url":"https://api.github.com/users/Happi-cat/followers","following_url":"https://api.github.com/users/Happi-cat/following{/other_user}","gists_url":"https://api.github.com/users/Happi-cat/gists{/gist_id}","starred_url":"https://api.github.com/users/Happi-cat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Happi-cat/subscriptions","organizations_url":"https://api.github.com/users/Happi-cat/orgs","repos_url":"https://api.github.com/users/Happi-cat/repos","events_url":"https://api.github.com/users/Happi-cat/events{/privacy}","received_events_url":"https://api.github.com/users/Happi-cat/received_events","type":"User","site_admin":false},"body":"т.к. внутри метода инициализациия содается новый словарь то нет смысла делать аргумент столь конкретным и можно указать, например, тип IReadOnlyDictionary\r\n","created_at":"2018-06-29T06:13:59Z","updated_at":"2018-06-29T07:01:59Z","html_url":"https://github.com/MikhailSiarko/ReadingList/pull/1#discussion_r199061696","pull_request_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/comments/199061696"},"html":{"href":"https://github.com/MikhailSiarko/ReadingList/pull/1#discussion_r199061696"},"pull_request":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1","id":192251209,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMjUxMjA5","html_url":"https://github.com/MikhailSiarko/ReadingList/pull/1","diff_url":"https://github.com/MikhailSiarko/ReadingList/pull/1.diff","patch_url":"https://github.com/MikhailSiarko/ReadingList/pull/1.patch","issue_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/1","number":1,"state":"open","locked":false,"title":"Develop","user":{"login":"MikhailSiarko","id":24798424,"node_id":"MDQ6VXNlcjI0Nzk4NDI0","avatar_url":"https://avatars2.githubusercontent.com/u/24798424?v=4","gravatar_id":"","url":"https://api.github.com/users/MikhailSiarko","html_url":"https://github.com/MikhailSiarko","followers_url":"https://api.github.com/users/MikhailSiarko/followers","following_url":"https://api.github.com/users/MikhailSiarko/following{/other_user}","gists_url":"https://api.github.com/users/MikhailSiarko/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailSiarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailSiarko/subscriptions","organizations_url":"https://api.github.com/users/MikhailSiarko/orgs","repos_url":"https://api.github.com/users/MikhailSiarko/repos","events_url":"https://api.github.com/users/MikhailSiarko/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailSiarko/received_events","type":"User","site_admin":false},"body":"Features:\r\n- Register/Login users;\r\n- Add, remove, edit book list items;\r\n- Edit book list;\r\n- Reding time tracking.","created_at":"2018-06-03T14:47:10Z","updated_at":"2018-06-29T07:01:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86257fc863541b6d4d24172982ac7ffd26eeee0a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1/commits","review_comments_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1/comments","review_comment_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/1/comments","statuses_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/statuses/8dbdd0e14e4ba1b5aeaf1cb21dacbba6667d40fb","head":{"label":"MikhailSiarko:develop","ref":"develop","sha":"8dbdd0e14e4ba1b5aeaf1cb21dacbba6667d40fb","user":{"login":"MikhailSiarko","id":24798424,"node_id":"MDQ6VXNlcjI0Nzk4NDI0","avatar_url":"https://avatars2.githubusercontent.com/u/24798424?v=4","gravatar_id":"","url":"https://api.github.com/users/MikhailSiarko","html_url":"https://github.com/MikhailSiarko","followers_url":"https://api.github.com/users/MikhailSiarko/followers","following_url":"https://api.github.com/users/MikhailSiarko/following{/other_user}","gists_url":"https://api.github.com/users/MikhailSiarko/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailSiarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailSiarko/subscriptions","organizations_url":"https://api.github.com/users/MikhailSiarko/orgs","repos_url":"https://api.github.com/users/MikhailSiarko/repos","events_url":"https://api.github.com/users/MikhailSiarko/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailSiarko/received_events","type":"User","site_admin":false},"repo":{"id":134001547,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQwMDE1NDc=","name":"ReadingList","full_name":"MikhailSiarko/ReadingList","owner":{"login":"MikhailSiarko","id":24798424,"node_id":"MDQ6VXNlcjI0Nzk4NDI0","avatar_url":"https://avatars2.githubusercontent.com/u/24798424?v=4","gravatar_id":"","url":"https://api.github.com/users/MikhailSiarko","html_url":"https://github.com/MikhailSiarko","followers_url":"https://api.github.com/users/MikhailSiarko/followers","following_url":"https://api.github.com/users/MikhailSiarko/following{/other_user}","gists_url":"https://api.github.com/users/MikhailSiarko/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailSiarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailSiarko/subscriptions","organizations_url":"https://api.github.com/users/MikhailSiarko/orgs","repos_url":"https://api.github.com/users/MikhailSiarko/repos","events_url":"https://api.github.com/users/MikhailSiarko/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailSiarko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikhailSiarko/ReadingList","description":"Training application","fork":false,"url":"https://api.github.com/repos/MikhailSiarko/ReadingList","forks_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/forks","keys_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/teams","hooks_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/hooks","issue_events_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/events{/number}","events_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/events","assignees_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/assignees{/user}","branches_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/branches{/branch}","tags_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/tags","blobs_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/statuses/{sha}","languages_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/languages","stargazers_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/stargazers","contributors_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/contributors","subscribers_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/subscribers","subscription_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/subscription","commits_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/contents/{+path}","compare_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/merges","archive_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/downloads","issues_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues{/number}","pulls_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls{/number}","milestones_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/milestones{/number}","notifications_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/labels{/name}","releases_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/releases{/id}","deployments_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/deployments","created_at":"2018-05-18T20:33:32Z","updated_at":"2018-05-20T18:31:12Z","pushed_at":"2018-06-27T09:46:12Z","git_url":"git://github.com/MikhailSiarko/ReadingList.git","ssh_url":"git@github.com:MikhailSiarko/ReadingList.git","clone_url":"https://github.com/MikhailSiarko/ReadingList.git","svn_url":"https://github.com/MikhailSiarko/ReadingList","homepage":null,"size":1319,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MikhailSiarko:master","ref":"master","sha":"6d9e8125478b03ea6b16468daaf8f7961c8a443a","user":{"login":"MikhailSiarko","id":24798424,"node_id":"MDQ6VXNlcjI0Nzk4NDI0","avatar_url":"https://avatars2.githubusercontent.com/u/24798424?v=4","gravatar_id":"","url":"https://api.github.com/users/MikhailSiarko","html_url":"https://github.com/MikhailSiarko","followers_url":"https://api.github.com/users/MikhailSiarko/followers","following_url":"https://api.github.com/users/MikhailSiarko/following{/other_user}","gists_url":"https://api.github.com/users/MikhailSiarko/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailSiarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailSiarko/subscriptions","organizations_url":"https://api.github.com/users/MikhailSiarko/orgs","repos_url":"https://api.github.com/users/MikhailSiarko/repos","events_url":"https://api.github.com/users/MikhailSiarko/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailSiarko/received_events","type":"User","site_admin":false},"repo":{"id":134001547,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQwMDE1NDc=","name":"ReadingList","full_name":"MikhailSiarko/ReadingList","owner":{"login":"MikhailSiarko","id":24798424,"node_id":"MDQ6VXNlcjI0Nzk4NDI0","avatar_url":"https://avatars2.githubusercontent.com/u/24798424?v=4","gravatar_id":"","url":"https://api.github.com/users/MikhailSiarko","html_url":"https://github.com/MikhailSiarko","followers_url":"https://api.github.com/users/MikhailSiarko/followers","following_url":"https://api.github.com/users/MikhailSiarko/following{/other_user}","gists_url":"https://api.github.com/users/MikhailSiarko/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailSiarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailSiarko/subscriptions","organizations_url":"https://api.github.com/users/MikhailSiarko/orgs","repos_url":"https://api.github.com/users/MikhailSiarko/repos","events_url":"https://api.github.com/users/MikhailSiarko/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailSiarko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MikhailSiarko/ReadingList","description":"Training application","fork":false,"url":"https://api.github.com/repos/MikhailSiarko/ReadingList","forks_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/forks","keys_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/teams","hooks_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/hooks","issue_events_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/events{/number}","events_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/events","assignees_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/assignees{/user}","branches_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/branches{/branch}","tags_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/tags","blobs_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/refs{/sha}","trees_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/statuses/{sha}","languages_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/languages","stargazers_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/stargazers","contributors_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/contributors","subscribers_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/subscribers","subscription_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/subscription","commits_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/commits{/sha}","git_commits_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/git/commits{/sha}","comments_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/comments{/number}","issue_comment_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/comments{/number}","contents_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/contents/{+path}","compare_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/merges","archive_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/downloads","issues_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues{/number}","pulls_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls{/number}","milestones_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/milestones{/number}","notifications_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/labels{/name}","releases_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/releases{/id}","deployments_url":"https://api.github.com/repos/MikhailSiarko/ReadingList/deployments","created_at":"2018-05-18T20:33:32Z","updated_at":"2018-05-20T18:31:12Z","pushed_at":"2018-06-27T09:46:12Z","git_url":"git://github.com/MikhailSiarko/ReadingList.git","ssh_url":"git@github.com:MikhailSiarko/ReadingList.git","clone_url":"https://github.com/MikhailSiarko/ReadingList.git","svn_url":"https://github.com/MikhailSiarko/ReadingList","homepage":null,"size":1319,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1"},"html":{"href":"https://github.com/MikhailSiarko/ReadingList/pull/1"},"issue":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/1"},"comments":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/MikhailSiarko/ReadingList/statuses/8dbdd0e14e4ba1b5aeaf1cb21dacbba6667d40fb"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Happi-cat"}}