{"action":"created","comment":{"url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments/43999035","id":43999035,"diff_hunk":"@@ -0,0 +1,79 @@\n+﻿using BuildRevisionCounter.MongoDB;\n+using MongoDB.Driver;\n+using NUnit.Framework;\n+using System.Threading.Tasks;\n+\n+namespace BuildRevisionCounter.Tests\n+{\n+\t[TestFixture]\n+\tpublic class MongoUserRepositoryTest\n+\t{\n+\t\tprivate MongoUserRepository _repository;\n+\n+\t\t[TestFixtureSetUp]\n+\t\tpublic void SetUp()\n+\t\t{\n+\t\t\tSetUpAsync().Wait();\n+\t\t}\n+\n+\t\tpublic async Task SetUpAsync()\n+\t\t{\n+\t\t\tvar storage = MongoDBStorageFactory.DefaultInstance;\n+\n+\t\t\tawait storage.Revisions.Database.Client.DropDatabaseAsync(storage.Revisions.Database.DatabaseNamespace.DatabaseName);\n+\t\t\tawait storage.SetUp();\n+\n+\t\t\t_repository = new MongoUserRepository(storage.Users.Database);","path":"BuildRevisionCounter.Tests/MongoUserRepositoryTest.cs","position":null,"original_position":26,"commit_id":"70087c33fd763ed290d10abe8f5fd5bac63f0a57","original_commit_id":"a0fd39423d27d85dd26d8e5c8c6a7368de3f9b68","user":{"login":"avgoncharov","id":2749062,"avatar_url":"https://avatars.githubusercontent.com/u/2749062?v=3","gravatar_id":"","url":"https://api.github.com/users/avgoncharov","html_url":"https://github.com/avgoncharov","followers_url":"https://api.github.com/users/avgoncharov/followers","following_url":"https://api.github.com/users/avgoncharov/following{/other_user}","gists_url":"https://api.github.com/users/avgoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/avgoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avgoncharov/subscriptions","organizations_url":"https://api.github.com/users/avgoncharov/orgs","repos_url":"https://api.github.com/users/avgoncharov/repos","events_url":"https://api.github.com/users/avgoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/avgoncharov/received_events","type":"User","site_admin":false},"body":"Исправил.\r\nНа сколько я понимаю SetUp нужно только для тестов, по этому я убрал его содержимое в MongoDBStorageUtils.","created_at":"2015-11-05T10:57:06Z","updated_at":"2015-11-05T10:57:06Z","html_url":"https://github.com/ExM/BuildRevisionCounter/pull/34#discussion_r43999035","pull_request_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments/43999035"},"html":{"href":"https://github.com/ExM/BuildRevisionCounter/pull/34#discussion_r43999035"},"pull_request":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34","id":49536268,"html_url":"https://github.com/ExM/BuildRevisionCounter/pull/34","diff_url":"https://github.com/ExM/BuildRevisionCounter/pull/34.diff","patch_url":"https://github.com/ExM/BuildRevisionCounter/pull/34.patch","issue_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/34","number":34,"state":"open","locked":false,"title":"Произвел декомпозицию.","user":{"login":"avgoncharov","id":2749062,"avatar_url":"https://avatars.githubusercontent.com/u/2749062?v=3","gravatar_id":"","url":"https://api.github.com/users/avgoncharov","html_url":"https://github.com/avgoncharov","followers_url":"https://api.github.com/users/avgoncharov/followers","following_url":"https://api.github.com/users/avgoncharov/following{/other_user}","gists_url":"https://api.github.com/users/avgoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/avgoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avgoncharov/subscriptions","organizations_url":"https://api.github.com/users/avgoncharov/orgs","repos_url":"https://api.github.com/users/avgoncharov/repos","events_url":"https://api.github.com/users/avgoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/avgoncharov/received_events","type":"User","site_admin":false},"body":"Интерфейс работы с данным разбит на два интерфейса-репозитория: Репозиторий ревизий и репозиторий пользователей.\r\nДобавлен базовый класс для репозиториев, параметризуемый хранилищем данных.\r\nВыделены DTO.\r\n\r\nПроизведены соответствующие изменения в контроллере, атрибуте аутентификации и тестах.\r\nВ тесты добавлен пример тестирования контроллера без базы данных на основе Moq.","created_at":"2015-11-03T09:59:18Z","updated_at":"2015-11-05T10:57:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b11d8bcf8d2bb85cbe502655c921d830ea9f5ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34/commits","review_comments_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34/comments","review_comment_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/34/comments","statuses_url":"https://api.github.com/repos/ExM/BuildRevisionCounter/statuses/70087c33fd763ed290d10abe8f5fd5bac63f0a57","head":{"label":"avgoncharov:Decomposition","ref":"Decomposition","sha":"70087c33fd763ed290d10abe8f5fd5bac63f0a57","user":{"login":"avgoncharov","id":2749062,"avatar_url":"https://avatars.githubusercontent.com/u/2749062?v=3","gravatar_id":"","url":"https://api.github.com/users/avgoncharov","html_url":"https://github.com/avgoncharov","followers_url":"https://api.github.com/users/avgoncharov/followers","following_url":"https://api.github.com/users/avgoncharov/following{/other_user}","gists_url":"https://api.github.com/users/avgoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/avgoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avgoncharov/subscriptions","organizations_url":"https://api.github.com/users/avgoncharov/orgs","repos_url":"https://api.github.com/users/avgoncharov/repos","events_url":"https://api.github.com/users/avgoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/avgoncharov/received_events","type":"User","site_admin":false},"repo":{"id":45445838,"name":"BuildRevisionCounter","full_name":"avgoncharov/BuildRevisionCounter","owner":{"login":"avgoncharov","id":2749062,"avatar_url":"https://avatars.githubusercontent.com/u/2749062?v=3","gravatar_id":"","url":"https://api.github.com/users/avgoncharov","html_url":"https://github.com/avgoncharov","followers_url":"https://api.github.com/users/avgoncharov/followers","following_url":"https://api.github.com/users/avgoncharov/following{/other_user}","gists_url":"https://api.github.com/users/avgoncharov/gists{/gist_id}","starred_url":"https://api.github.com/users/avgoncharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avgoncharov/subscriptions","organizations_url":"https://api.github.com/users/avgoncharov/orgs","repos_url":"https://api.github.com/users/avgoncharov/repos","events_url":"https://api.github.com/users/avgoncharov/events{/privacy}","received_events_url":"https://api.github.com/users/avgoncharov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avgoncharov/BuildRevisionCounter","description":"Обучающий проект: веб-сервер для генерации номеров ревизий для непрерывной интеграции.","fork":true,"url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter","forks_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/forks","keys_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/teams","hooks_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/hooks","issue_events_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/issues/events{/number}","events_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/events","assignees_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/assignees{/user}","branches_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/branches{/branch}","tags_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/tags","blobs_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/statuses/{sha}","languages_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/languages","stargazers_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/stargazers","contributors_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/contributors","subscribers_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/subscribers","subscription_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/subscription","commits_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/contents/{+path}","compare_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/merges","archive_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/downloads","issues_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/issues{/number}","pulls_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/pulls{/number}","milestones_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/milestones{/number}","notifications_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/labels{/name}","releases_url":"https://api.github.com/repos/avgoncharov/BuildRevisionCounter/releases{/id}","created_at":"2015-11-03T06:14:41Z","updated_at":"2015-11-03T06:14:42Z","pushed_at":"2015-11-05T10:50:16Z","git_url":"git://github.com/avgoncharov/BuildRevisionCounter.git","ssh_url":"git@github.com:avgoncharov/BuildRevisionCounter.git","clone_url":"https://github.com/avgoncharov/BuildRevisionCounter.git","svn_url":"https://github.com/avgoncharov/BuildRevisionCounter","homepage":null,"size":876,"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":"fd80ab16ef65428e11e6c81a6a37a780ec7ef027","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-11-05T10:50:18Z","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":876,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":10,"forks":14,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34"},"html":{"href":"https://github.com/ExM/BuildRevisionCounter/pull/34"},"issue":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/34"},"comments":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/ExM/BuildRevisionCounter/statuses/70087c33fd763ed290d10abe8f5fd5bac63f0a57"}}}}