{"action":"created","comment":{"url":"https://api.github.com/repos/dha01/IS/pulls/comments/46092412","id":46092412,"diff_hunk":"@@ -0,0 +1,118 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+using System.Transactions;\n+using IS.Model.Item.Specialty;\n+using IS.Model.Repository.Specialty;\n+using NUnit.Framework;\n+\n+namespace IS.Model.Tests.Repository.Specialty\n+{\n+    /// <summary>\n+    /// Тесты для репозитория специальностей.\n+    /// </summary>\n+    [Category(\"Integration\")]\n+    [TestFixture]\n+    public class SpecialtyRepositoryTests\n+    {\n+        #region Fields\n+\n+        /// <summary>\n+        /// Транзакция.\n+        /// </summary>\n+        private TransactionScope _transactionScope;\n+\n+        /// <summary>\n+        /// Репозиторий специальностей.\n+        /// </summary>\n+        private SpecialtyRepository _specialtyRepository;\n+\n+        private SpecialtyItem _specialty;\n+        private SpecialtyItem _specialtyNew;\n+\n+        #endregion\n+\n+        #region SetUp\n+\n+        /// <summary>\n+        /// Выполняется перед каждым тестом.\n+        /// </summary>\n+        [SetUp]\n+        public void SetUp()\n+        {\n+            _transactionScope = new TransactionScope();\n+            _specialtyRepository = new SpecialtyRepository();\n+\n+            _specialty = new SpecialtyItem()\n+            {\n+                FullName = \"Программное обеспечение вычислительной техники и автоматизированных систем\",\n+                ShortName = \"Ифн\",\n+                Code = \"230105\",\n+                Cathedra = 45655454\n+            };\n+            _specialtyNew = new SpecialtyItem()\n+            {\n+                FullName = \"Сисадмин\",\n+                ShortName = \"Сис\",\n+                Code = \"123456\",\n+                Cathedra = 87654321\n+            };\n+        }\n+\n+        #endregion\n+\n+        #region TearDown\n+\n+        /// <summary>\n+        /// Выполняется после каждого теста.\n+        /// </summary>\n+        [TearDown]\n+        public void TearDown()\n+        {\n+            _transactionScope.Dispose();\n+        }\n+\n+        #endregion\n+\n+        #region Methods\n+\n+        /// <summary>\n+        /// Проверяет эквивалентны ли две специальности.\n+        /// </summary>\n+        /// <param name=\"first_specialty\"></param>","path":"IS.Model/IS.Model.Tests/Repository/Specialty/SpecialtyRepositoryTests.cs","position":84,"original_position":84,"commit_id":"eedf4d3097d70f68ed10e492bd8669416d15c699","original_commit_id":"eedf4d3097d70f68ed10e492bd8669416d15c699","user":{"login":"dha01","id":13014467,"avatar_url":"https://avatars.githubusercontent.com/u/13014467?v=3","gravatar_id":"","url":"https://api.github.com/users/dha01","html_url":"https://github.com/dha01","followers_url":"https://api.github.com/users/dha01/followers","following_url":"https://api.github.com/users/dha01/following{/other_user}","gists_url":"https://api.github.com/users/dha01/gists{/gist_id}","starred_url":"https://api.github.com/users/dha01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dha01/subscriptions","organizations_url":"https://api.github.com/users/dha01/orgs","repos_url":"https://api.github.com/users/dha01/repos","events_url":"https://api.github.com/users/dha01/events{/privacy}","received_events_url":"https://api.github.com/users/dha01/received_events","type":"User","site_admin":false},"body":"Добавить описание входных параметров.","created_at":"2015-11-29T13:57:26Z","updated_at":"2015-11-29T13:57:26Z","html_url":"https://github.com/dha01/IS/pull/100#discussion_r46092412","pull_request_url":"https://api.github.com/repos/dha01/IS/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/dha01/IS/pulls/comments/46092412"},"html":{"href":"https://github.com/dha01/IS/pull/100#discussion_r46092412"},"pull_request":{"href":"https://api.github.com/repos/dha01/IS/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/dha01/IS/pulls/100","id":51834219,"html_url":"https://github.com/dha01/IS/pull/100","diff_url":"https://github.com/dha01/IS/pull/100.diff","patch_url":"https://github.com/dha01/IS/pull/100.patch","issue_url":"https://api.github.com/repos/dha01/IS/issues/100","number":100,"state":"open","locked":false,"title":"ПЕ-22б Егоров Виталий: Создание метода Update в классе SpecialtyRepos…","user":{"login":"VEgorOFF","id":14702626,"avatar_url":"https://avatars.githubusercontent.com/u/14702626?v=3","gravatar_id":"","url":"https://api.github.com/users/VEgorOFF","html_url":"https://github.com/VEgorOFF","followers_url":"https://api.github.com/users/VEgorOFF/followers","following_url":"https://api.github.com/users/VEgorOFF/following{/other_user}","gists_url":"https://api.github.com/users/VEgorOFF/gists{/gist_id}","starred_url":"https://api.github.com/users/VEgorOFF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VEgorOFF/subscriptions","organizations_url":"https://api.github.com/users/VEgorOFF/orgs","repos_url":"https://api.github.com/users/VEgorOFF/repos","events_url":"https://api.github.com/users/VEgorOFF/events{/privacy}","received_events_url":"https://api.github.com/users/VEgorOFF/received_events","type":"User","site_admin":false},"body":"…itory.","created_at":"2015-11-25T19:05:01Z","updated_at":"2015-11-29T13:57:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b01810caa5e9fa67582a2cc308e047318897dd2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dha01/IS/pulls/100/commits","review_comments_url":"https://api.github.com/repos/dha01/IS/pulls/100/comments","review_comment_url":"https://api.github.com/repos/dha01/IS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dha01/IS/issues/100/comments","statuses_url":"https://api.github.com/repos/dha01/IS/statuses/eedf4d3097d70f68ed10e492bd8669416d15c699","head":{"label":"dha01:feature/Task_75_EgoroV_Vitaliy","ref":"feature/Task_75_EgoroV_Vitaliy","sha":"eedf4d3097d70f68ed10e492bd8669416d15c699","user":{"login":"dha01","id":13014467,"avatar_url":"https://avatars.githubusercontent.com/u/13014467?v=3","gravatar_id":"","url":"https://api.github.com/users/dha01","html_url":"https://github.com/dha01","followers_url":"https://api.github.com/users/dha01/followers","following_url":"https://api.github.com/users/dha01/following{/other_user}","gists_url":"https://api.github.com/users/dha01/gists{/gist_id}","starred_url":"https://api.github.com/users/dha01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dha01/subscriptions","organizations_url":"https://api.github.com/users/dha01/orgs","repos_url":"https://api.github.com/users/dha01/repos","events_url":"https://api.github.com/users/dha01/events{/privacy}","received_events_url":"https://api.github.com/users/dha01/received_events","type":"User","site_admin":false},"repo":{"id":41916840,"name":"IS","full_name":"dha01/IS","owner":{"login":"dha01","id":13014467,"avatar_url":"https://avatars.githubusercontent.com/u/13014467?v=3","gravatar_id":"","url":"https://api.github.com/users/dha01","html_url":"https://github.com/dha01","followers_url":"https://api.github.com/users/dha01/followers","following_url":"https://api.github.com/users/dha01/following{/other_user}","gists_url":"https://api.github.com/users/dha01/gists{/gist_id}","starred_url":"https://api.github.com/users/dha01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dha01/subscriptions","organizations_url":"https://api.github.com/users/dha01/orgs","repos_url":"https://api.github.com/users/dha01/repos","events_url":"https://api.github.com/users/dha01/events{/privacy}","received_events_url":"https://api.github.com/users/dha01/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dha01/IS","description":"Информационная система","fork":false,"url":"https://api.github.com/repos/dha01/IS","forks_url":"https://api.github.com/repos/dha01/IS/forks","keys_url":"https://api.github.com/repos/dha01/IS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dha01/IS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dha01/IS/teams","hooks_url":"https://api.github.com/repos/dha01/IS/hooks","issue_events_url":"https://api.github.com/repos/dha01/IS/issues/events{/number}","events_url":"https://api.github.com/repos/dha01/IS/events","assignees_url":"https://api.github.com/repos/dha01/IS/assignees{/user}","branches_url":"https://api.github.com/repos/dha01/IS/branches{/branch}","tags_url":"https://api.github.com/repos/dha01/IS/tags","blobs_url":"https://api.github.com/repos/dha01/IS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dha01/IS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dha01/IS/git/refs{/sha}","trees_url":"https://api.github.com/repos/dha01/IS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dha01/IS/statuses/{sha}","languages_url":"https://api.github.com/repos/dha01/IS/languages","stargazers_url":"https://api.github.com/repos/dha01/IS/stargazers","contributors_url":"https://api.github.com/repos/dha01/IS/contributors","subscribers_url":"https://api.github.com/repos/dha01/IS/subscribers","subscription_url":"https://api.github.com/repos/dha01/IS/subscription","commits_url":"https://api.github.com/repos/dha01/IS/commits{/sha}","git_commits_url":"https://api.github.com/repos/dha01/IS/git/commits{/sha}","comments_url":"https://api.github.com/repos/dha01/IS/comments{/number}","issue_comment_url":"https://api.github.com/repos/dha01/IS/issues/comments{/number}","contents_url":"https://api.github.com/repos/dha01/IS/contents/{+path}","compare_url":"https://api.github.com/repos/dha01/IS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dha01/IS/merges","archive_url":"https://api.github.com/repos/dha01/IS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dha01/IS/downloads","issues_url":"https://api.github.com/repos/dha01/IS/issues{/number}","pulls_url":"https://api.github.com/repos/dha01/IS/pulls{/number}","milestones_url":"https://api.github.com/repos/dha01/IS/milestones{/number}","notifications_url":"https://api.github.com/repos/dha01/IS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dha01/IS/labels{/name}","releases_url":"https://api.github.com/repos/dha01/IS/releases{/id}","created_at":"2015-09-04T13:18:48Z","updated_at":"2015-09-05T14:01:39Z","pushed_at":"2015-11-28T14:36:54Z","git_url":"git://github.com/dha01/IS.git","ssh_url":"git@github.com:dha01/IS.git","clone_url":"https://github.com/dha01/IS.git","svn_url":"https://github.com/dha01/IS","homepage":null,"size":758,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":21,"forks":3,"open_issues":21,"watchers":0,"default_branch":"master"}},"base":{"label":"dha01:master","ref":"master","sha":"28bd36becf78747aa00127a8709aab277c9b77e4","user":{"login":"dha01","id":13014467,"avatar_url":"https://avatars.githubusercontent.com/u/13014467?v=3","gravatar_id":"","url":"https://api.github.com/users/dha01","html_url":"https://github.com/dha01","followers_url":"https://api.github.com/users/dha01/followers","following_url":"https://api.github.com/users/dha01/following{/other_user}","gists_url":"https://api.github.com/users/dha01/gists{/gist_id}","starred_url":"https://api.github.com/users/dha01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dha01/subscriptions","organizations_url":"https://api.github.com/users/dha01/orgs","repos_url":"https://api.github.com/users/dha01/repos","events_url":"https://api.github.com/users/dha01/events{/privacy}","received_events_url":"https://api.github.com/users/dha01/received_events","type":"User","site_admin":false},"repo":{"id":41916840,"name":"IS","full_name":"dha01/IS","owner":{"login":"dha01","id":13014467,"avatar_url":"https://avatars.githubusercontent.com/u/13014467?v=3","gravatar_id":"","url":"https://api.github.com/users/dha01","html_url":"https://github.com/dha01","followers_url":"https://api.github.com/users/dha01/followers","following_url":"https://api.github.com/users/dha01/following{/other_user}","gists_url":"https://api.github.com/users/dha01/gists{/gist_id}","starred_url":"https://api.github.com/users/dha01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dha01/subscriptions","organizations_url":"https://api.github.com/users/dha01/orgs","repos_url":"https://api.github.com/users/dha01/repos","events_url":"https://api.github.com/users/dha01/events{/privacy}","received_events_url":"https://api.github.com/users/dha01/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dha01/IS","description":"Информационная система","fork":false,"url":"https://api.github.com/repos/dha01/IS","forks_url":"https://api.github.com/repos/dha01/IS/forks","keys_url":"https://api.github.com/repos/dha01/IS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dha01/IS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dha01/IS/teams","hooks_url":"https://api.github.com/repos/dha01/IS/hooks","issue_events_url":"https://api.github.com/repos/dha01/IS/issues/events{/number}","events_url":"https://api.github.com/repos/dha01/IS/events","assignees_url":"https://api.github.com/repos/dha01/IS/assignees{/user}","branches_url":"https://api.github.com/repos/dha01/IS/branches{/branch}","tags_url":"https://api.github.com/repos/dha01/IS/tags","blobs_url":"https://api.github.com/repos/dha01/IS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dha01/IS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dha01/IS/git/refs{/sha}","trees_url":"https://api.github.com/repos/dha01/IS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dha01/IS/statuses/{sha}","languages_url":"https://api.github.com/repos/dha01/IS/languages","stargazers_url":"https://api.github.com/repos/dha01/IS/stargazers","contributors_url":"https://api.github.com/repos/dha01/IS/contributors","subscribers_url":"https://api.github.com/repos/dha01/IS/subscribers","subscription_url":"https://api.github.com/repos/dha01/IS/subscription","commits_url":"https://api.github.com/repos/dha01/IS/commits{/sha}","git_commits_url":"https://api.github.com/repos/dha01/IS/git/commits{/sha}","comments_url":"https://api.github.com/repos/dha01/IS/comments{/number}","issue_comment_url":"https://api.github.com/repos/dha01/IS/issues/comments{/number}","contents_url":"https://api.github.com/repos/dha01/IS/contents/{+path}","compare_url":"https://api.github.com/repos/dha01/IS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dha01/IS/merges","archive_url":"https://api.github.com/repos/dha01/IS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dha01/IS/downloads","issues_url":"https://api.github.com/repos/dha01/IS/issues{/number}","pulls_url":"https://api.github.com/repos/dha01/IS/pulls{/number}","milestones_url":"https://api.github.com/repos/dha01/IS/milestones{/number}","notifications_url":"https://api.github.com/repos/dha01/IS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dha01/IS/labels{/name}","releases_url":"https://api.github.com/repos/dha01/IS/releases{/id}","created_at":"2015-09-04T13:18:48Z","updated_at":"2015-09-05T14:01:39Z","pushed_at":"2015-11-28T14:36:54Z","git_url":"git://github.com/dha01/IS.git","ssh_url":"git@github.com:dha01/IS.git","clone_url":"https://github.com/dha01/IS.git","svn_url":"https://github.com/dha01/IS","homepage":null,"size":758,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":21,"forks":3,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dha01/IS/pulls/100"},"html":{"href":"https://github.com/dha01/IS/pull/100"},"issue":{"href":"https://api.github.com/repos/dha01/IS/issues/100"},"comments":{"href":"https://api.github.com/repos/dha01/IS/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/dha01/IS/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/dha01/IS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dha01/IS/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/dha01/IS/statuses/eedf4d3097d70f68ed10e492bd8669416d15c699"}}}}