{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/2744","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2744/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2744/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2744/events","html_url":"https://github.com/Particular/NServiceBus/issues/2744","id":84263640,"number":2744,"title":"Make contexts mockable","user":{"login":"SimonCropp","id":122666,"avatar_url":"https://avatars.githubusercontent.com/u/122666?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonCropp","html_url":"https://github.com/SimonCropp","followers_url":"https://api.github.com/users/SimonCropp/followers","following_url":"https://api.github.com/users/SimonCropp/following{/other_user}","gists_url":"https://api.github.com/users/SimonCropp/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonCropp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonCropp/subscriptions","organizations_url":"https://api.github.com/users/SimonCropp/orgs","repos_url":"https://api.github.com/users/SimonCropp/repos","events_url":"https://api.github.com/users/SimonCropp/events{/privacy}","received_events_url":"https://api.github.com/users/SimonCropp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T23:37:02Z","updated_at":"2015-06-03T07:56:24Z","closed_at":null,"body":"So I just tried to unit test a custom behavior and it was very difficult to a context instance to pass into it. The reason is that there are significant numbers of parameters and state to create a context.\r\n\r\nSo should our context classes be mockable?"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/108235809","html_url":"https://github.com/Particular/NServiceBus/issues/2744#issuecomment-108235809","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2744","id":108235809,"user":{"login":"andreasohlund","id":125028,"avatar_url":"https://avatars.githubusercontent.com/u/125028?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasohlund","html_url":"https://github.com/andreasohlund","followers_url":"https://api.github.com/users/andreasohlund/followers","following_url":"https://api.github.com/users/andreasohlund/following{/other_user}","gists_url":"https://api.github.com/users/andreasohlund/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasohlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasohlund/subscriptions","organizations_url":"https://api.github.com/users/andreasohlund/orgs","repos_url":"https://api.github.com/users/andreasohlund/repos","events_url":"https://api.github.com/users/andreasohlund/events{/privacy}","received_events_url":"https://api.github.com/users/andreasohlund/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T07:56:24Z","updated_at":"2015-06-03T07:56:24Z","body":"From the work I'm seeing we're moving towards contexts with no properties at all on them (just passing the parent context in) so I'd say we should hold off with this one to validate my statement first?"}}