{"action":"created","comment":{"url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/comments/167223884","pull_request_review_id":95415124,"id":167223884,"diff_hunk":"@@ -0,0 +1,57 @@\n+﻿using Esfa.Vacancy.Domain.Constants;\n+using Esfa.Vacancy.Domain.Interfaces;\n+using Esfa.Vacancy.Infrastructure;\n+using Esfa.Vacancy.Infrastructure.Services;\n+using Moq;\n+using NUnit.Framework;\n+using SFA.DAS.NLog.Logger;\n+using StructureMap;\n+\n+namespace Esfa.Vacancy.UnitTests.Shared.Infrastructure\n+{\n+    public class GivenStructureMapRegistry\n+    {\n+        [Test]\n+        public void AndIsReadonlyEnabled()\n+        {\n+            var mockRequestContext = new Mock<IRequestContext>();\n+            var mockProvideSettings = new Mock<IProvideSettings>();\n+            mockProvideSettings\n+                .Setup(ps => ps.GetNullableSetting(ApplicationSettingKeys.UseSandboxServices))\n+                .Returns(\"something\");\n+            var container = new Container(new InfrastructureRegistry(mockProvideSettings.Object));\n+\n+            container.Configure(c =>\n+            {\n+                c.For<IRequestContext>().Use(mockRequestContext.Object);\n+            });\n+\n+            Assert.That(container.GetInstance<IProvideSettings>(),\n+                Is.SameAs(mockProvideSettings.Object));\n+\n+            Assert.That(container.GetInstance<ICreateApprenticeshipService>(),\n+                Is.InstanceOf<CreateApprenticeshipSandboxService>());\n+        }\n+\n+        [Test]\n+        public void AndIsReadonlyDisabled()","path":"src/Esfa.Vacancy.UnitTests/Shared/Infrastructure/GivenStructureMapRegistry.cs","position":null,"original_position":37,"commit_id":"ed2adc3376719c87e0f28b71030f883beab06b87","original_commit_id":"0b1f370189ee1d0d2158a53fddd3c45aaea62cd0","user":{"login":"dev4valtech","id":29398561,"avatar_url":"https://avatars1.githubusercontent.com/u/29398561?v=4","gravatar_id":"","url":"https://api.github.com/users/dev4valtech","html_url":"https://github.com/dev4valtech","followers_url":"https://api.github.com/users/dev4valtech/followers","following_url":"https://api.github.com/users/dev4valtech/following{/other_user}","gists_url":"https://api.github.com/users/dev4valtech/gists{/gist_id}","starred_url":"https://api.github.com/users/dev4valtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev4valtech/subscriptions","organizations_url":"https://api.github.com/users/dev4valtech/orgs","repos_url":"https://api.github.com/users/dev4valtech/repos","events_url":"https://api.github.com/users/dev4valtech/events{/privacy}","received_events_url":"https://api.github.com/users/dev4valtech/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-02-09T13:14:46Z","updated_at":"2018-02-09T13:14:47Z","html_url":"https://github.com/SkillsFundingAgency/vacancy-register-api/pull/127#discussion_r167223884","pull_request_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/comments/167223884"},"html":{"href":"https://github.com/SkillsFundingAgency/vacancy-register-api/pull/127#discussion_r167223884"},"pull_request":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127"}},"in_reply_to_id":167215516},"pull_request":{"url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127","id":168218547,"html_url":"https://github.com/SkillsFundingAgency/vacancy-register-api/pull/127","diff_url":"https://github.com/SkillsFundingAgency/vacancy-register-api/pull/127.diff","patch_url":"https://github.com/SkillsFundingAgency/vacancy-register-api/pull/127.patch","issue_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/127","number":127,"state":"open","locked":false,"title":"RA-1584 sandbox feature toggle","user":{"login":"dev4valtech","id":29398561,"avatar_url":"https://avatars1.githubusercontent.com/u/29398561?v=4","gravatar_id":"","url":"https://api.github.com/users/dev4valtech","html_url":"https://github.com/dev4valtech","followers_url":"https://api.github.com/users/dev4valtech/followers","following_url":"https://api.github.com/users/dev4valtech/following{/other_user}","gists_url":"https://api.github.com/users/dev4valtech/gists{/gist_id}","starred_url":"https://api.github.com/users/dev4valtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev4valtech/subscriptions","organizations_url":"https://api.github.com/users/dev4valtech/orgs","repos_url":"https://api.github.com/users/dev4valtech/repos","events_url":"https://api.github.com/users/dev4valtech/events{/privacy}","received_events_url":"https://api.github.com/users/dev4valtech/received_events","type":"User","site_admin":false},"body":"Take 2:  \r\n- The configuration setting name is changed to `UseSandboxServices`, idea is to include  `Sandbox` in fake/non-persistent services so it becomes apparent. \r\n- Introduced `CreateApprenticeshipSandbocService` which will only log the request.\r\n- Added tests around registry to use sandbox service if the configuration setting exists. ","created_at":"2018-02-09T11:41:28Z","updated_at":"2018-02-09T13:14:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40e640619a0ce7178fbee563dfbef90829aaa45e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"scottywakefield","id":1789343,"avatar_url":"https://avatars2.githubusercontent.com/u/1789343?v=4","gravatar_id":"","url":"https://api.github.com/users/scottywakefield","html_url":"https://github.com/scottywakefield","followers_url":"https://api.github.com/users/scottywakefield/followers","following_url":"https://api.github.com/users/scottywakefield/following{/other_user}","gists_url":"https://api.github.com/users/scottywakefield/gists{/gist_id}","starred_url":"https://api.github.com/users/scottywakefield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottywakefield/subscriptions","organizations_url":"https://api.github.com/users/scottywakefield/orgs","repos_url":"https://api.github.com/users/scottywakefield/repos","events_url":"https://api.github.com/users/scottywakefield/events{/privacy}","received_events_url":"https://api.github.com/users/scottywakefield/received_events","type":"User","site_admin":false},{"login":"sachpatel","id":10399742,"avatar_url":"https://avatars0.githubusercontent.com/u/10399742?v=4","gravatar_id":"","url":"https://api.github.com/users/sachpatel","html_url":"https://github.com/sachpatel","followers_url":"https://api.github.com/users/sachpatel/followers","following_url":"https://api.github.com/users/sachpatel/following{/other_user}","gists_url":"https://api.github.com/users/sachpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/sachpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachpatel/subscriptions","organizations_url":"https://api.github.com/users/sachpatel/orgs","repos_url":"https://api.github.com/users/sachpatel/repos","events_url":"https://api.github.com/users/sachpatel/events{/privacy}","received_events_url":"https://api.github.com/users/sachpatel/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127/commits","review_comments_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127/comments","review_comment_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/127/comments","statuses_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/statuses/ed2adc3376719c87e0f28b71030f883beab06b87","head":{"label":"SkillsFundingAgency:feature/RA-1584-SandboxFeatureToggle","ref":"feature/RA-1584-SandboxFeatureToggle","sha":"ed2adc3376719c87e0f28b71030f883beab06b87","user":{"login":"SkillsFundingAgency","id":9841374,"avatar_url":"https://avatars1.githubusercontent.com/u/9841374?v=4","gravatar_id":"","url":"https://api.github.com/users/SkillsFundingAgency","html_url":"https://github.com/SkillsFundingAgency","followers_url":"https://api.github.com/users/SkillsFundingAgency/followers","following_url":"https://api.github.com/users/SkillsFundingAgency/following{/other_user}","gists_url":"https://api.github.com/users/SkillsFundingAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/SkillsFundingAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkillsFundingAgency/subscriptions","organizations_url":"https://api.github.com/users/SkillsFundingAgency/orgs","repos_url":"https://api.github.com/users/SkillsFundingAgency/repos","events_url":"https://api.github.com/users/SkillsFundingAgency/events{/privacy}","received_events_url":"https://api.github.com/users/SkillsFundingAgency/received_events","type":"Organization","site_admin":false},"repo":{"id":95564539,"name":"vacancy-register-api","full_name":"SkillsFundingAgency/vacancy-register-api","owner":{"login":"SkillsFundingAgency","id":9841374,"avatar_url":"https://avatars1.githubusercontent.com/u/9841374?v=4","gravatar_id":"","url":"https://api.github.com/users/SkillsFundingAgency","html_url":"https://github.com/SkillsFundingAgency","followers_url":"https://api.github.com/users/SkillsFundingAgency/followers","following_url":"https://api.github.com/users/SkillsFundingAgency/following{/other_user}","gists_url":"https://api.github.com/users/SkillsFundingAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/SkillsFundingAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkillsFundingAgency/subscriptions","organizations_url":"https://api.github.com/users/SkillsFundingAgency/orgs","repos_url":"https://api.github.com/users/SkillsFundingAgency/repos","events_url":"https://api.github.com/users/SkillsFundingAgency/events{/privacy}","received_events_url":"https://api.github.com/users/SkillsFundingAgency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SkillsFundingAgency/vacancy-register-api","description":":cloud::newspaper: API for apprenticeship and traineeship vacancies","fork":false,"url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api","forks_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/forks","keys_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/teams","hooks_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/hooks","issue_events_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/events{/number}","events_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/events","assignees_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/assignees{/user}","branches_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/branches{/branch}","tags_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/tags","blobs_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/statuses/{sha}","languages_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/languages","stargazers_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/stargazers","contributors_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/contributors","subscribers_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/subscribers","subscription_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/subscription","commits_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/contents/{+path}","compare_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/merges","archive_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/downloads","issues_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues{/number}","pulls_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls{/number}","milestones_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/milestones{/number}","notifications_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/labels{/name}","releases_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/releases{/id}","deployments_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/deployments","created_at":"2017-06-27T14:02:03Z","updated_at":"2018-01-30T17:04:25Z","pushed_at":"2018-02-09T13:14:31Z","git_url":"git://github.com/SkillsFundingAgency/vacancy-register-api.git","ssh_url":"git@github.com:SkillsFundingAgency/vacancy-register-api.git","clone_url":"https://github.com/SkillsFundingAgency/vacancy-register-api.git","svn_url":"https://github.com/SkillsFundingAgency/vacancy-register-api","homepage":"","size":2282,"stargazers_count":3,"watchers_count":3,"language":"C#","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"SkillsFundingAgency:master","ref":"master","sha":"0e94a994aededc8b495f78f316b0e1788e6c65cb","user":{"login":"SkillsFundingAgency","id":9841374,"avatar_url":"https://avatars1.githubusercontent.com/u/9841374?v=4","gravatar_id":"","url":"https://api.github.com/users/SkillsFundingAgency","html_url":"https://github.com/SkillsFundingAgency","followers_url":"https://api.github.com/users/SkillsFundingAgency/followers","following_url":"https://api.github.com/users/SkillsFundingAgency/following{/other_user}","gists_url":"https://api.github.com/users/SkillsFundingAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/SkillsFundingAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkillsFundingAgency/subscriptions","organizations_url":"https://api.github.com/users/SkillsFundingAgency/orgs","repos_url":"https://api.github.com/users/SkillsFundingAgency/repos","events_url":"https://api.github.com/users/SkillsFundingAgency/events{/privacy}","received_events_url":"https://api.github.com/users/SkillsFundingAgency/received_events","type":"Organization","site_admin":false},"repo":{"id":95564539,"name":"vacancy-register-api","full_name":"SkillsFundingAgency/vacancy-register-api","owner":{"login":"SkillsFundingAgency","id":9841374,"avatar_url":"https://avatars1.githubusercontent.com/u/9841374?v=4","gravatar_id":"","url":"https://api.github.com/users/SkillsFundingAgency","html_url":"https://github.com/SkillsFundingAgency","followers_url":"https://api.github.com/users/SkillsFundingAgency/followers","following_url":"https://api.github.com/users/SkillsFundingAgency/following{/other_user}","gists_url":"https://api.github.com/users/SkillsFundingAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/SkillsFundingAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkillsFundingAgency/subscriptions","organizations_url":"https://api.github.com/users/SkillsFundingAgency/orgs","repos_url":"https://api.github.com/users/SkillsFundingAgency/repos","events_url":"https://api.github.com/users/SkillsFundingAgency/events{/privacy}","received_events_url":"https://api.github.com/users/SkillsFundingAgency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SkillsFundingAgency/vacancy-register-api","description":":cloud::newspaper: API for apprenticeship and traineeship vacancies","fork":false,"url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api","forks_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/forks","keys_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/teams","hooks_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/hooks","issue_events_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/events{/number}","events_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/events","assignees_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/assignees{/user}","branches_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/branches{/branch}","tags_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/tags","blobs_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/statuses/{sha}","languages_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/languages","stargazers_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/stargazers","contributors_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/contributors","subscribers_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/subscribers","subscription_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/subscription","commits_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/contents/{+path}","compare_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/merges","archive_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/downloads","issues_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues{/number}","pulls_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls{/number}","milestones_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/milestones{/number}","notifications_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/labels{/name}","releases_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/releases{/id}","deployments_url":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/deployments","created_at":"2017-06-27T14:02:03Z","updated_at":"2018-01-30T17:04:25Z","pushed_at":"2018-02-09T13:14:31Z","git_url":"git://github.com/SkillsFundingAgency/vacancy-register-api.git","ssh_url":"git@github.com:SkillsFundingAgency/vacancy-register-api.git","clone_url":"https://github.com/SkillsFundingAgency/vacancy-register-api.git","svn_url":"https://github.com/SkillsFundingAgency/vacancy-register-api","homepage":"","size":2282,"stargazers_count":3,"watchers_count":3,"language":"C#","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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127"},"html":{"href":"https://github.com/SkillsFundingAgency/vacancy-register-api/pull/127"},"issue":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/127"},"comments":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/SkillsFundingAgency/vacancy-register-api/statuses/ed2adc3376719c87e0f28b71030f883beab06b87"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dev4valtech"}}