{"action":"created","issue":{"url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/34","labels_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/34/comments","events_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/34/events","html_url":"https://github.com/BDSA-2015/AutosysProgram/pull/34","id":120571278,"number":34,"title":"Implementation/storage repositories","user":{"login":"TVAO","id":9947367,"avatar_url":"https://avatars.githubusercontent.com/u/9947367?v=3","gravatar_id":"","url":"https://api.github.com/users/TVAO","html_url":"https://github.com/TVAO","followers_url":"https://api.github.com/users/TVAO/followers","following_url":"https://api.github.com/users/TVAO/following{/other_user}","gists_url":"https://api.github.com/users/TVAO/gists{/gist_id}","starred_url":"https://api.github.com/users/TVAO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TVAO/subscriptions","organizations_url":"https://api.github.com/users/TVAO/orgs","repos_url":"https://api.github.com/users/TVAO/repos","events_url":"https://api.github.com/users/TVAO/events{/privacy}","received_events_url":"https://api.github.com/users/TVAO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-05T16:45:42Z","updated_at":"2015-12-06T11:55:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/34","html_url":"https://github.com/BDSA-2015/AutosysProgram/pull/34","diff_url":"https://github.com/BDSA-2015/AutosysProgram/pull/34.diff","patch_url":"https://github.com/BDSA-2015/AutosysProgram/pull/34.patch"},"body":"Added tests for UserRepository by using the Framework Moq and then implemented CRUD operations based on this. Need to know if operations should be async and how to keep db connection open for each method call only. Please do make example in my current implementation. When this branch is validated, I will implement the other repositories. "},"comment":{"url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/comments/162308747","html_url":"https://github.com/BDSA-2015/AutosysProgram/pull/34#issuecomment-162308747","issue_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/34","id":162308747,"user":{"login":"TVAO","id":9947367,"avatar_url":"https://avatars.githubusercontent.com/u/9947367?v=3","gravatar_id":"","url":"https://api.github.com/users/TVAO","html_url":"https://github.com/TVAO","followers_url":"https://api.github.com/users/TVAO/followers","following_url":"https://api.github.com/users/TVAO/following{/other_user}","gists_url":"https://api.github.com/users/TVAO/gists{/gist_id}","starred_url":"https://api.github.com/users/TVAO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TVAO/subscriptions","organizations_url":"https://api.github.com/users/TVAO/orgs","repos_url":"https://api.github.com/users/TVAO/repos","events_url":"https://api.github.com/users/TVAO/events{/privacy}","received_events_url":"https://api.github.com/users/TVAO/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T11:55:05Z","updated_at":"2015-12-06T11:55:05Z","body":"Design choices to consider: single dbcontext vs multiple dbcontexts and single repository vs multiple repositories. Either have one repository per aggregate root (e.g. StudyRepository allows to omit repo for Paper as its child) or use EF directly without repositories (all commands available). Either have one DbContext with no separation where entities relate to each other or split it by subsystems (can cause problems if entities are interrelated but allows for cleaner code and SRP)."}}