{"action":"created","comment":{"url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/comments/240033045","pull_request_review_id":182974452,"id":240033045,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDAzMzA0NQ==","diff_hunk":"@@ -0,0 +1,529 @@\n+using HwProj.CoursesService.API.Models;\n+using Microsoft.EntityFrameworkCore;\n+using NUnit.Framework;\n+using System.Linq;\n+using System.Threading.Tasks;\n+using Shouldly;\n+using Microsoft.Data.Sqlite;\n+using System.Collections.Generic;\n+using HwProj.CoursesService.API.Models.ViewModels;\n+\n+namespace Tests\n+{\n+    [TestFixture]\n+    public class CourseRepositoryTests\n+    {\n+        private SqliteConnection _connection;\n+        private DbContextOptions<CourseContext> _options;\n+\n+        private Course course1;\n+        private Course course2;\n+        private List<Course> courses;\n+\n+        [SetUp]\n+        public void Setup()\n+        {\n+            _connection = new SqliteConnection(\"DataSource=:memory:\");\n+            _connection.Open();\n+\n+            _options = new DbContextOptionsBuilder<CourseContext>()\n+                .UseSqlite(_connection)\n+                .Options;\n+\n+            using (var context = new CourseContext(_options))\n+            {\n+                context.Database.EnsureCreated();","path":"HwProj.CoursesService/HwProj.CoursesService.Tests/CourseRepositoryTests.cs","position":35,"original_position":35,"commit_id":"c8adfea0edfd1d80a7535af7c49823e00e794c8d","original_commit_id":"c8adfea0edfd1d80a7535af7c49823e00e794c8d","user":{"login":"MaxVortman","id":17088719,"node_id":"MDQ6VXNlcjE3MDg4NzE5","avatar_url":"https://avatars3.githubusercontent.com/u/17088719?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxVortman","html_url":"https://github.com/MaxVortman","followers_url":"https://api.github.com/users/MaxVortman/followers","following_url":"https://api.github.com/users/MaxVortman/following{/other_user}","gists_url":"https://api.github.com/users/MaxVortman/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxVortman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxVortman/subscriptions","organizations_url":"https://api.github.com/users/MaxVortman/orgs","repos_url":"https://api.github.com/users/MaxVortman/repos","events_url":"https://api.github.com/users/MaxVortman/events{/privacy}","received_events_url":"https://api.github.com/users/MaxVortman/received_events","type":"User","site_admin":false},"body":"В setup и teardown куски кода будут копипаститься в каждом тестовом классе. Это не хорошо. Здорово было бы вынести эти куски в абстрактный класс в отдельном проекте, чтобы можно было подключать его остальным микросервисам. ","created_at":"2018-12-09T11:24:15Z","updated_at":"2018-12-09T11:37:47Z","html_url":"https://github.com/InteIIigeNET/HwProj-2.0.1/pull/3#discussion_r240033045","pull_request_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/comments/240033045"},"html":{"href":"https://github.com/InteIIigeNET/HwProj-2.0.1/pull/3#discussion_r240033045"},"pull_request":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3","id":225495779,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDk1Nzc5","html_url":"https://github.com/InteIIigeNET/HwProj-2.0.1/pull/3","diff_url":"https://github.com/InteIIigeNET/HwProj-2.0.1/pull/3.diff","patch_url":"https://github.com/InteIIigeNET/HwProj-2.0.1/pull/3.patch","issue_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/3","number":3,"state":"open","locked":false,"title":"courses service","user":{"login":"reacheight","id":21079607,"node_id":"MDQ6VXNlcjIxMDc5NjA3","avatar_url":"https://avatars3.githubusercontent.com/u/21079607?v=4","gravatar_id":"","url":"https://api.github.com/users/reacheight","html_url":"https://github.com/reacheight","followers_url":"https://api.github.com/users/reacheight/followers","following_url":"https://api.github.com/users/reacheight/following{/other_user}","gists_url":"https://api.github.com/users/reacheight/gists{/gist_id}","starred_url":"https://api.github.com/users/reacheight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reacheight/subscriptions","organizations_url":"https://api.github.com/users/reacheight/orgs","repos_url":"https://api.github.com/users/reacheight/repos","events_url":"https://api.github.com/users/reacheight/events{/privacy}","received_events_url":"https://api.github.com/users/reacheight/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-24T17:56:12Z","updated_at":"2018-12-09T11:37:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e2c79d7bc6a2fcebefecc50f1a57e5bafca8192","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3/commits","review_comments_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3/comments","review_comment_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/3/comments","statuses_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/statuses/c8adfea0edfd1d80a7535af7c49823e00e794c8d","head":{"label":"InteIIigeNET:courses-service","ref":"courses-service","sha":"c8adfea0edfd1d80a7535af7c49823e00e794c8d","user":{"login":"InteIIigeNET","id":36668737,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjY4NzM3","avatar_url":"https://avatars3.githubusercontent.com/u/36668737?v=4","gravatar_id":"","url":"https://api.github.com/users/InteIIigeNET","html_url":"https://github.com/InteIIigeNET","followers_url":"https://api.github.com/users/InteIIigeNET/followers","following_url":"https://api.github.com/users/InteIIigeNET/following{/other_user}","gists_url":"https://api.github.com/users/InteIIigeNET/gists{/gist_id}","starred_url":"https://api.github.com/users/InteIIigeNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InteIIigeNET/subscriptions","organizations_url":"https://api.github.com/users/InteIIigeNET/orgs","repos_url":"https://api.github.com/users/InteIIigeNET/repos","events_url":"https://api.github.com/users/InteIIigeNET/events{/privacy}","received_events_url":"https://api.github.com/users/InteIIigeNET/received_events","type":"Organization","site_admin":false},"repo":{"id":154173733,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNzM3MzM=","name":"HwProj-2.0.1","full_name":"InteIIigeNET/HwProj-2.0.1","private":false,"owner":{"login":"InteIIigeNET","id":36668737,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjY4NzM3","avatar_url":"https://avatars3.githubusercontent.com/u/36668737?v=4","gravatar_id":"","url":"https://api.github.com/users/InteIIigeNET","html_url":"https://github.com/InteIIigeNET","followers_url":"https://api.github.com/users/InteIIigeNET/followers","following_url":"https://api.github.com/users/InteIIigeNET/following{/other_user}","gists_url":"https://api.github.com/users/InteIIigeNET/gists{/gist_id}","starred_url":"https://api.github.com/users/InteIIigeNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InteIIigeNET/subscriptions","organizations_url":"https://api.github.com/users/InteIIigeNET/orgs","repos_url":"https://api.github.com/users/InteIIigeNET/repos","events_url":"https://api.github.com/users/InteIIigeNET/events{/privacy}","received_events_url":"https://api.github.com/users/InteIIigeNET/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/InteIIigeNET/HwProj-2.0.1","description":"Lecturer-students ASP.NET Core collaboration service","fork":false,"url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1","forks_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/forks","keys_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/teams","hooks_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/hooks","issue_events_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/events{/number}","events_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/events","assignees_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/assignees{/user}","branches_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/branches{/branch}","tags_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/tags","blobs_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/refs{/sha}","trees_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/statuses/{sha}","languages_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/languages","stargazers_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/stargazers","contributors_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/contributors","subscribers_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/subscribers","subscription_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/subscription","commits_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/commits{/sha}","git_commits_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/commits{/sha}","comments_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/comments{/number}","issue_comment_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/comments{/number}","contents_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/contents/{+path}","compare_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/merges","archive_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/downloads","issues_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues{/number}","pulls_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls{/number}","milestones_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/milestones{/number}","notifications_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/labels{/name}","releases_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/releases{/id}","deployments_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/deployments","created_at":"2018-10-22T16:03:52Z","updated_at":"2018-10-31T11:02:31Z","pushed_at":"2018-12-06T10:03:12Z","git_url":"git://github.com/InteIIigeNET/HwProj-2.0.1.git","ssh_url":"git@github.com:InteIIigeNET/HwProj-2.0.1.git","clone_url":"https://github.com/InteIIigeNET/HwProj-2.0.1.git","svn_url":"https://github.com/InteIIigeNET/HwProj-2.0.1","homepage":null,"size":47,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"InteIIigeNET:master","ref":"master","sha":"8cba6d8fb054cdc704842b514ab0927ab324f8f7","user":{"login":"InteIIigeNET","id":36668737,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjY4NzM3","avatar_url":"https://avatars3.githubusercontent.com/u/36668737?v=4","gravatar_id":"","url":"https://api.github.com/users/InteIIigeNET","html_url":"https://github.com/InteIIigeNET","followers_url":"https://api.github.com/users/InteIIigeNET/followers","following_url":"https://api.github.com/users/InteIIigeNET/following{/other_user}","gists_url":"https://api.github.com/users/InteIIigeNET/gists{/gist_id}","starred_url":"https://api.github.com/users/InteIIigeNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InteIIigeNET/subscriptions","organizations_url":"https://api.github.com/users/InteIIigeNET/orgs","repos_url":"https://api.github.com/users/InteIIigeNET/repos","events_url":"https://api.github.com/users/InteIIigeNET/events{/privacy}","received_events_url":"https://api.github.com/users/InteIIigeNET/received_events","type":"Organization","site_admin":false},"repo":{"id":154173733,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNzM3MzM=","name":"HwProj-2.0.1","full_name":"InteIIigeNET/HwProj-2.0.1","private":false,"owner":{"login":"InteIIigeNET","id":36668737,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjY4NzM3","avatar_url":"https://avatars3.githubusercontent.com/u/36668737?v=4","gravatar_id":"","url":"https://api.github.com/users/InteIIigeNET","html_url":"https://github.com/InteIIigeNET","followers_url":"https://api.github.com/users/InteIIigeNET/followers","following_url":"https://api.github.com/users/InteIIigeNET/following{/other_user}","gists_url":"https://api.github.com/users/InteIIigeNET/gists{/gist_id}","starred_url":"https://api.github.com/users/InteIIigeNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InteIIigeNET/subscriptions","organizations_url":"https://api.github.com/users/InteIIigeNET/orgs","repos_url":"https://api.github.com/users/InteIIigeNET/repos","events_url":"https://api.github.com/users/InteIIigeNET/events{/privacy}","received_events_url":"https://api.github.com/users/InteIIigeNET/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/InteIIigeNET/HwProj-2.0.1","description":"Lecturer-students ASP.NET Core collaboration service","fork":false,"url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1","forks_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/forks","keys_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/teams","hooks_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/hooks","issue_events_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/events{/number}","events_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/events","assignees_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/assignees{/user}","branches_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/branches{/branch}","tags_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/tags","blobs_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/refs{/sha}","trees_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/statuses/{sha}","languages_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/languages","stargazers_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/stargazers","contributors_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/contributors","subscribers_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/subscribers","subscription_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/subscription","commits_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/commits{/sha}","git_commits_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/git/commits{/sha}","comments_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/comments{/number}","issue_comment_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/comments{/number}","contents_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/contents/{+path}","compare_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/merges","archive_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/downloads","issues_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues{/number}","pulls_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls{/number}","milestones_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/milestones{/number}","notifications_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/labels{/name}","releases_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/releases{/id}","deployments_url":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/deployments","created_at":"2018-10-22T16:03:52Z","updated_at":"2018-10-31T11:02:31Z","pushed_at":"2018-12-06T10:03:12Z","git_url":"git://github.com/InteIIigeNET/HwProj-2.0.1.git","ssh_url":"git@github.com:InteIIigeNET/HwProj-2.0.1.git","clone_url":"https://github.com/InteIIigeNET/HwProj-2.0.1.git","svn_url":"https://github.com/InteIIigeNET/HwProj-2.0.1","homepage":null,"size":47,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3"},"html":{"href":"https://github.com/InteIIigeNET/HwProj-2.0.1/pull/3"},"issue":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/3"},"comments":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/InteIIigeNET/HwProj-2.0.1/statuses/c8adfea0edfd1d80a7535af7c49823e00e794c8d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MaxVortman"}}