{"action":"created","comment":{"url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments/31164223","id":31164223,"diff_hunk":"@@ -0,0 +1,75 @@\n+﻿using System;\n+using System.Net;\n+using System.Threading.Tasks;\n+using System.Web.Http;\n+using BuildRevisionCounter.Api.Security;\n+using BuildRevisionCounter.DAL.Repositories.Interfaces;\n+using BuildRevisionCounter.Model.BuildRevisionStorage;\n+using MongoDB.Driver;\n+\n+namespace BuildRevisionCounter.Api.Controllers\n+{\n+    [RoutePrefix(\"api/counter\")]\n+    [BasicAuthentication]\n+    public class CounterController : ApiController\n+    {\n+        private readonly IUserRepository _userRepository;\n+        private IRevisionRepository _revisionRepository;\n+\n+        /// <summary>\n+        /// Конструктор контроллера номеров ревизий.\n+        /// </summary>\n+        /// <param name=\"userRepository\"></param>\n+        /// <param name=\"revisionRepository\"></param>\n+        public CounterController(IUserRepository userRepository, IRevisionRepository revisionRepository)\n+        {\n+            _userRepository = userRepository;","path":"BuildRevisionCounter.Api/Controllers/CounterController.cs","position":26,"original_position":26,"commit_id":"12b0be6f1688b44aded804ee344ca24290886c84","original_commit_id":"12b0be6f1688b44aded804ee344ca24290886c84","user":{"login":"ExM","id":485331,"avatar_url":"https://avatars.githubusercontent.com/u/485331?v=3","gravatar_id":"","url":"https://api.github.com/users/ExM","html_url":"https://github.com/ExM","followers_url":"https://api.github.com/users/ExM/followers","following_url":"https://api.github.com/users/ExM/following{/other_user}","gists_url":"https://api.github.com/users/ExM/gists{/gist_id}","starred_url":"https://api.github.com/users/ExM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExM/subscriptions","organizations_url":"https://api.github.com/users/ExM/orgs","repos_url":"https://api.github.com/users/ExM/repos","events_url":"https://api.github.com/users/ExM/events{/privacy}","received_events_url":"https://api.github.com/users/ExM/received_events","type":"User","site_admin":false},"body":"_userRepository в контроллере не используется, зачем он тут?","created_at":"2015-05-27T18:22:08Z","updated_at":"2015-05-27T18:22:08Z","html_url":"https://github.com/ExM/BuildRevisionCounter/pull/26#discussion_r31164223","pull_request_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments/31164223"},"html":{"href":"https://github.com/ExM/BuildRevisionCounter/pull/26#discussion_r31164223"},"pull_request":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26","id":35822788,"html_url":"https://github.com/ExM/BuildRevisionCounter/pull/26","diff_url":"https://github.com/ExM/BuildRevisionCounter/pull/26.diff","patch_url":"https://github.com/ExM/BuildRevisionCounter/pull/26.patch","issue_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/26","number":26,"state":"open","locked":false,"title":"#25. Архитектура изменена на масштабируемую. ","user":{"login":"Dimestel","id":1042021,"avatar_url":"https://avatars.githubusercontent.com/u/1042021?v=3","gravatar_id":"","url":"https://api.github.com/users/Dimestel","html_url":"https://github.com/Dimestel","followers_url":"https://api.github.com/users/Dimestel/followers","following_url":"https://api.github.com/users/Dimestel/following{/other_user}","gists_url":"https://api.github.com/users/Dimestel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dimestel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dimestel/subscriptions","organizations_url":"https://api.github.com/users/Dimestel/orgs","repos_url":"https://api.github.com/users/Dimestel/repos","events_url":"https://api.github.com/users/Dimestel/events{/privacy}","received_events_url":"https://api.github.com/users/Dimestel/received_events","type":"User","site_admin":false},"body":"Приложение разбито на уровни Model, DAL, Api. Тесты переписаны с учётом новой архитектуры","created_at":"2015-05-20T11:39:46Z","updated_at":"2015-05-27T18:22:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c370e58052d2a0fa55ea7d8a14b61964d8ddb3d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/26/comments","statuses_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/statuses/12b0be6f1688b44aded804ee344ca24290886c84","head":{"label":"Dimestel:feature_#25","ref":"feature_#25","sha":"12b0be6f1688b44aded804ee344ca24290886c84","user":{"login":"Dimestel","id":1042021,"avatar_url":"https://avatars.githubusercontent.com/u/1042021?v=3","gravatar_id":"","url":"https://api.github.com/users/Dimestel","html_url":"https://github.com/Dimestel","followers_url":"https://api.github.com/users/Dimestel/followers","following_url":"https://api.github.com/users/Dimestel/following{/other_user}","gists_url":"https://api.github.com/users/Dimestel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dimestel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dimestel/subscriptions","organizations_url":"https://api.github.com/users/Dimestel/orgs","repos_url":"https://api.github.com/users/Dimestel/repos","events_url":"https://api.github.com/users/Dimestel/events{/privacy}","received_events_url":"https://api.github.com/users/Dimestel/received_events","type":"User","site_admin":false},"repo":{"id":35943017,"name":"BuildRevisionCounter","full_name":"Dimestel/BuildRevisionCounter","owner":{"login":"Dimestel","id":1042021,"avatar_url":"https://avatars.githubusercontent.com/u/1042021?v=3","gravatar_id":"","url":"https://api.github.com/users/Dimestel","html_url":"https://github.com/Dimestel","followers_url":"https://api.github.com/users/Dimestel/followers","following_url":"https://api.github.com/users/Dimestel/following{/other_user}","gists_url":"https://api.github.com/users/Dimestel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dimestel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dimestel/subscriptions","organizations_url":"https://api.github.com/users/Dimestel/orgs","repos_url":"https://api.github.com/users/Dimestel/repos","events_url":"https://api.github.com/users/Dimestel/events{/privacy}","received_events_url":"https://api.github.com/users/Dimestel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dimestel/BuildRevisionCounter","description":"Обучающий проект: веб-сервер для генерации номеров ревизий для непрерывной интеграции.","fork":true,"url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter","forks_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/forks","keys_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/teams","hooks_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/hooks","issue_events_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/issues/events{/number}","events_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/events","assignees_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/assignees{/user}","branches_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/branches{/branch}","tags_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/tags","blobs_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/statuses/{sha}","languages_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/languages","stargazers_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/stargazers","contributors_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/contributors","subscribers_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/subscribers","subscription_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/subscription","commits_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/contents/{+path}","compare_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/merges","archive_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/downloads","issues_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/issues{/number}","pulls_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/pulls{/number}","milestones_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/milestones{/number}","notifications_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/labels{/name}","releases_url":"https://api.github.com/repos/Dimestel/BuildRevisionCounter/releases{/id}","created_at":"2015-05-20T11:06:44Z","updated_at":"2015-05-20T11:06:44Z","pushed_at":"2015-05-21T07:34:48Z","git_url":"git://github.com/Dimestel/BuildRevisionCounter.git","ssh_url":"git@github.com:Dimestel/BuildRevisionCounter.git","clone_url":"https://github.com/Dimestel/BuildRevisionCounter.git","svn_url":"https://github.com/Dimestel/BuildRevisionCounter","homepage":null,"size":483,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ExM:master","ref":"master","sha":"c525cac2c5bad624e1fb9f60d2dfe84dfb066a4f","user":{"login":"ExM","id":485331,"avatar_url":"https://avatars.githubusercontent.com/u/485331?v=3","gravatar_id":"","url":"https://api.github.com/users/ExM","html_url":"https://github.com/ExM","followers_url":"https://api.github.com/users/ExM/followers","following_url":"https://api.github.com/users/ExM/following{/other_user}","gists_url":"https://api.github.com/users/ExM/gists{/gist_id}","starred_url":"https://api.github.com/users/ExM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExM/subscriptions","organizations_url":"https://api.github.com/users/ExM/orgs","repos_url":"https://api.github.com/users/ExM/repos","events_url":"https://api.github.com/users/ExM/events{/privacy}","received_events_url":"https://api.github.com/users/ExM/received_events","type":"User","site_admin":false},"repo":{"id":30503597,"name":"BuildRevisionCounter","full_name":"ExM/BuildRevisionCounter","owner":{"login":"ExM","id":485331,"avatar_url":"https://avatars.githubusercontent.com/u/485331?v=3","gravatar_id":"","url":"https://api.github.com/users/ExM","html_url":"https://github.com/ExM","followers_url":"https://api.github.com/users/ExM/followers","following_url":"https://api.github.com/users/ExM/following{/other_user}","gists_url":"https://api.github.com/users/ExM/gists{/gist_id}","starred_url":"https://api.github.com/users/ExM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExM/subscriptions","organizations_url":"https://api.github.com/users/ExM/orgs","repos_url":"https://api.github.com/users/ExM/repos","events_url":"https://api.github.com/users/ExM/events{/privacy}","received_events_url":"https://api.github.com/users/ExM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExM/BuildRevisionCounter","description":"Обучающий проект: веб-сервер для генерации номеров ревизий для непрерывной интеграции.","fork":false,"url":"https://api.github.com/repos/ExM/BuildRevisionCounter","forks_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/forks","keys_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/teams","hooks_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/hooks","issue_events_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/events{/number}","events_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/events","assignees_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/assignees{/user}","branches_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/branches{/branch}","tags_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/tags","blobs_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/statuses/{sha}","languages_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/languages","stargazers_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/stargazers","contributors_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/contributors","subscribers_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/subscribers","subscription_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/subscription","commits_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/contents/{+path}","compare_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/merges","archive_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/downloads","issues_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues{/number}","pulls_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls{/number}","milestones_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/milestones{/number}","notifications_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/labels{/name}","releases_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/releases{/id}","created_at":"2015-02-08T19:55:56Z","updated_at":"2015-05-07T20:25:16Z","pushed_at":"2015-05-21T07:34:48Z","git_url":"git://github.com/ExM/BuildRevisionCounter.git","ssh_url":"git@github.com:ExM/BuildRevisionCounter.git","clone_url":"https://github.com/ExM/BuildRevisionCounter.git","svn_url":"https://github.com/ExM/BuildRevisionCounter","homepage":null,"size":748,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":10,"forks":12,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26"},"html":{"href":"https://github.com/ExM/BuildRevisionCounter/pull/26"},"issue":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/26"},"comments":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/statuses/12b0be6f1688b44aded804ee344ca24290886c84"}}}}