{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/2","id":50744265,"html_url":"https://github.com/BDSA-2015/AutosysProgram/pull/2","diff_url":"https://github.com/BDSA-2015/AutosysProgram/pull/2.diff","patch_url":"https://github.com/BDSA-2015/AutosysProgram/pull/2.patch","issue_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/2","number":2,"state":"open","locked":false,"title":"Added Storage class and Dependency Injeciton ","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},"body":"…ogics\r\n\r\nProposal: move entity classes with attributes only to Storage\r\nInstead access entities through ApplicationLogics and have controllers/handlers.\r\n\r\n- Added DbStorage with CRUD implementation for database\r\n\r\n- Renamed IStorage to IRepository in Repository package in ApplicationLogics to remain consistent.\r\nNote that Repository package holds interfaces used by ApplicationLogics to communicate with underlying Storage package.\r\n\r\n- Added example of dependency injection in Program main method with dbcontext, repository and fictive \"StudyStock\" class.\r\nNote that it does not work since Storage references ApplicationLogics (in order to implement IRepository) so ApplicationLogics cannot reference Storage.\r\nThis should be fixed so that we can use a dbcontext and set it in the view or main method (circular dependency at the moment).\r\n\r\nThings to consider:\r\n- ApplicationLogics and Storage cannot reference each other (circular dependency)\r\n- Entity classes with data attributes in ApplicationLogics should probably be moved to Storage and be accessed with handlers instead.\r\n- Dependency injection does not work in main method but the DbStorage and LocalContext class should now support it (please validate).","created_at":"2015-11-15T10:51:23Z","updated_at":"2015-11-15T10:51:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/2/commits","review_comments_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/2/comments","review_comment_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/2/comments","statuses_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/statuses/b036d6ee992bffff8cf03cced1d6c236b991fdc7","head":{"label":"BDSA-2015:implementation/storage","ref":"implementation/storage","sha":"b036d6ee992bffff8cf03cced1d6c236b991fdc7","user":{"login":"BDSA-2015","id":14249269,"avatar_url":"https://avatars.githubusercontent.com/u/14249269?v=3","gravatar_id":"","url":"https://api.github.com/users/BDSA-2015","html_url":"https://github.com/BDSA-2015","followers_url":"https://api.github.com/users/BDSA-2015/followers","following_url":"https://api.github.com/users/BDSA-2015/following{/other_user}","gists_url":"https://api.github.com/users/BDSA-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/BDSA-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BDSA-2015/subscriptions","organizations_url":"https://api.github.com/users/BDSA-2015/orgs","repos_url":"https://api.github.com/users/BDSA-2015/repos","events_url":"https://api.github.com/users/BDSA-2015/events{/privacy}","received_events_url":"https://api.github.com/users/BDSA-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":45984560,"name":"AutosysProgram","full_name":"BDSA-2015/AutosysProgram","owner":{"login":"BDSA-2015","id":14249269,"avatar_url":"https://avatars.githubusercontent.com/u/14249269?v=3","gravatar_id":"","url":"https://api.github.com/users/BDSA-2015","html_url":"https://github.com/BDSA-2015","followers_url":"https://api.github.com/users/BDSA-2015/followers","following_url":"https://api.github.com/users/BDSA-2015/following{/other_user}","gists_url":"https://api.github.com/users/BDSA-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/BDSA-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BDSA-2015/subscriptions","organizations_url":"https://api.github.com/users/BDSA-2015/orgs","repos_url":"https://api.github.com/users/BDSA-2015/repos","events_url":"https://api.github.com/users/BDSA-2015/events{/privacy}","received_events_url":"https://api.github.com/users/BDSA-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BDSA-2015/AutosysProgram","description":"The program","fork":false,"url":"https://api.github.com/repos/BDSA-2015/AutosysProgram","forks_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/forks","keys_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/teams","hooks_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/hooks","issue_events_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/events{/number}","events_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/events","assignees_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/assignees{/user}","branches_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/branches{/branch}","tags_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/tags","blobs_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/refs{/sha}","trees_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/statuses/{sha}","languages_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/languages","stargazers_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/stargazers","contributors_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/contributors","subscribers_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/subscribers","subscription_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/subscription","commits_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/commits{/sha}","git_commits_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/commits{/sha}","comments_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/comments{/number}","issue_comment_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/comments{/number}","contents_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/contents/{+path}","compare_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/merges","archive_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/downloads","issues_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues{/number}","pulls_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls{/number}","milestones_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/milestones{/number}","notifications_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/labels{/name}","releases_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/releases{/id}","created_at":"2015-11-11T13:52:23Z","updated_at":"2015-11-11T13:55:51Z","pushed_at":"2015-11-15T10:50:38Z","git_url":"git://github.com/BDSA-2015/AutosysProgram.git","ssh_url":"git@github.com:BDSA-2015/AutosysProgram.git","clone_url":"https://github.com/BDSA-2015/AutosysProgram.git","svn_url":"https://github.com/BDSA-2015/AutosysProgram","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"BDSA-2015:master","ref":"master","sha":"7ccfc70c2c75f8343b27e24817c009297f5c4aa7","user":{"login":"BDSA-2015","id":14249269,"avatar_url":"https://avatars.githubusercontent.com/u/14249269?v=3","gravatar_id":"","url":"https://api.github.com/users/BDSA-2015","html_url":"https://github.com/BDSA-2015","followers_url":"https://api.github.com/users/BDSA-2015/followers","following_url":"https://api.github.com/users/BDSA-2015/following{/other_user}","gists_url":"https://api.github.com/users/BDSA-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/BDSA-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BDSA-2015/subscriptions","organizations_url":"https://api.github.com/users/BDSA-2015/orgs","repos_url":"https://api.github.com/users/BDSA-2015/repos","events_url":"https://api.github.com/users/BDSA-2015/events{/privacy}","received_events_url":"https://api.github.com/users/BDSA-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":45984560,"name":"AutosysProgram","full_name":"BDSA-2015/AutosysProgram","owner":{"login":"BDSA-2015","id":14249269,"avatar_url":"https://avatars.githubusercontent.com/u/14249269?v=3","gravatar_id":"","url":"https://api.github.com/users/BDSA-2015","html_url":"https://github.com/BDSA-2015","followers_url":"https://api.github.com/users/BDSA-2015/followers","following_url":"https://api.github.com/users/BDSA-2015/following{/other_user}","gists_url":"https://api.github.com/users/BDSA-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/BDSA-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BDSA-2015/subscriptions","organizations_url":"https://api.github.com/users/BDSA-2015/orgs","repos_url":"https://api.github.com/users/BDSA-2015/repos","events_url":"https://api.github.com/users/BDSA-2015/events{/privacy}","received_events_url":"https://api.github.com/users/BDSA-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BDSA-2015/AutosysProgram","description":"The program","fork":false,"url":"https://api.github.com/repos/BDSA-2015/AutosysProgram","forks_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/forks","keys_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/teams","hooks_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/hooks","issue_events_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/events{/number}","events_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/events","assignees_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/assignees{/user}","branches_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/branches{/branch}","tags_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/tags","blobs_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/refs{/sha}","trees_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/statuses/{sha}","languages_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/languages","stargazers_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/stargazers","contributors_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/contributors","subscribers_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/subscribers","subscription_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/subscription","commits_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/commits{/sha}","git_commits_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/git/commits{/sha}","comments_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/comments{/number}","issue_comment_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/comments{/number}","contents_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/contents/{+path}","compare_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/merges","archive_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/downloads","issues_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues{/number}","pulls_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls{/number}","milestones_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/milestones{/number}","notifications_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/labels{/name}","releases_url":"https://api.github.com/repos/BDSA-2015/AutosysProgram/releases{/id}","created_at":"2015-11-11T13:52:23Z","updated_at":"2015-11-11T13:55:51Z","pushed_at":"2015-11-15T10:50:38Z","git_url":"git://github.com/BDSA-2015/AutosysProgram.git","ssh_url":"git@github.com:BDSA-2015/AutosysProgram.git","clone_url":"https://github.com/BDSA-2015/AutosysProgram.git","svn_url":"https://github.com/BDSA-2015/AutosysProgram","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/2"},"html":{"href":"https://github.com/BDSA-2015/AutosysProgram/pull/2"},"issue":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/2"},"comments":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/BDSA-2015/AutosysProgram/statuses/b036d6ee992bffff8cf03cced1d6c236b991fdc7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":145,"deletions":27,"changed_files":7}}