{"action":"created","comment":{"url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/comments/39688587","id":39688587,"diff_hunk":"@@ -0,0 +1,79 @@\n+# =========== SETUP ============= #\n+\n+RouterTests = Space.namespace('RouterTests')\n+\n+Space.messaging.define Space.messaging.Command, 'RouterTests', {\n+  Create: targetId: String\n+  DoSomething: targetId: String\n+}\n+\n+Space.messaging.define Space.messaging.Event, 'RouterTests', {\n+  SomethingHappenedInOtherContext: correlationId: String\n+  Created: sourceId: String\n+  DidSomething: sourceId: String\n+}\n+\n+class RouterTests.Aggregate extends Space.eventSourcing.Aggregate","path":"tests/infrastructure/router.integration.coffee","position":16,"original_position":16,"commit_id":"c54bf83f2b4512e380d375c7d747850adbde9d86","original_commit_id":"c54bf83f2b4512e380d375c7d747850adbde9d86","user":{"login":"rhyslbw","id":303881,"avatar_url":"https://avatars.githubusercontent.com/u/303881?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyslbw","html_url":"https://github.com/rhyslbw","followers_url":"https://api.github.com/users/rhyslbw/followers","following_url":"https://api.github.com/users/rhyslbw/following{/other_user}","gists_url":"https://api.github.com/users/rhyslbw/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyslbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyslbw/subscriptions","organizations_url":"https://api.github.com/users/rhyslbw/orgs","repos_url":"https://api.github.com/users/rhyslbw/repos","events_url":"https://api.github.com/users/rhyslbw/events{/privacy}","received_events_url":"https://api.github.com/users/rhyslbw/received_events","type":"User","site_admin":false},"body":"`RouterTests.TestAggregate` - again for more clarity","created_at":"2015-09-16T21:36:43Z","updated_at":"2015-09-16T21:36:43Z","html_url":"https://github.com/meteor-space/event-sourcing/pull/9#discussion_r39688587","pull_request_url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/comments/39688587"},"html":{"href":"https://github.com/meteor-space/event-sourcing/pull/9#discussion_r39688587"},"pull_request":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9","id":45073413,"html_url":"https://github.com/meteor-space/event-sourcing/pull/9","diff_url":"https://github.com/meteor-space/event-sourcing/pull/9.diff","patch_url":"https://github.com/meteor-space/event-sourcing/pull/9.patch","issue_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues/9","number":9,"state":"open","locked":false,"title":"adds first draft of an aggregate router api","user":{"login":"DominikGuzei","id":172414,"avatar_url":"https://avatars.githubusercontent.com/u/172414?v=3","gravatar_id":"","url":"https://api.github.com/users/DominikGuzei","html_url":"https://github.com/DominikGuzei","followers_url":"https://api.github.com/users/DominikGuzei/followers","following_url":"https://api.github.com/users/DominikGuzei/following{/other_user}","gists_url":"https://api.github.com/users/DominikGuzei/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikGuzei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikGuzei/subscriptions","organizations_url":"https://api.github.com/users/DominikGuzei/orgs","repos_url":"https://api.github.com/users/DominikGuzei/repos","events_url":"https://api.github.com/users/DominikGuzei/events{/privacy}","received_events_url":"https://api.github.com/users/DominikGuzei/received_events","type":"User","site_admin":false},"body":"This PR adds the first draft of `Space.eventSourcing.Router` which will enable us to remove most boilerplate related to routing commands and integration events to aggregates :wink: \r\n\r\nIdeas for better API naming etc. are welcome, please have a look at the unit tests to get a feeling for the current status.","created_at":"2015-09-15T16:44:53Z","updated_at":"2015-09-16T21:36:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aafa9355be38d44dbb95f94c419cf111caf020e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9/commits","review_comments_url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9/comments","review_comment_url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues/9/comments","statuses_url":"https://api.github.com/repos/meteor-space/event-sourcing/statuses/c54bf83f2b4512e380d375c7d747850adbde9d86","head":{"label":"meteor-space:feature/router-api","ref":"feature/router-api","sha":"c54bf83f2b4512e380d375c7d747850adbde9d86","user":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"repo":{"id":25350715,"name":"event-sourcing","full_name":"meteor-space/event-sourcing","owner":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteor-space/event-sourcing","description":"CQRS and Event Sourcing Infrastructure for Meteor.","fork":false,"url":"https://api.github.com/repos/meteor-space/event-sourcing","forks_url":"https://api.github.com/repos/meteor-space/event-sourcing/forks","keys_url":"https://api.github.com/repos/meteor-space/event-sourcing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteor-space/event-sourcing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteor-space/event-sourcing/teams","hooks_url":"https://api.github.com/repos/meteor-space/event-sourcing/hooks","issue_events_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues/events{/number}","events_url":"https://api.github.com/repos/meteor-space/event-sourcing/events","assignees_url":"https://api.github.com/repos/meteor-space/event-sourcing/assignees{/user}","branches_url":"https://api.github.com/repos/meteor-space/event-sourcing/branches{/branch}","tags_url":"https://api.github.com/repos/meteor-space/event-sourcing/tags","blobs_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteor-space/event-sourcing/statuses/{sha}","languages_url":"https://api.github.com/repos/meteor-space/event-sourcing/languages","stargazers_url":"https://api.github.com/repos/meteor-space/event-sourcing/stargazers","contributors_url":"https://api.github.com/repos/meteor-space/event-sourcing/contributors","subscribers_url":"https://api.github.com/repos/meteor-space/event-sourcing/subscribers","subscription_url":"https://api.github.com/repos/meteor-space/event-sourcing/subscription","commits_url":"https://api.github.com/repos/meteor-space/event-sourcing/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteor-space/event-sourcing/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteor-space/event-sourcing/contents/{+path}","compare_url":"https://api.github.com/repos/meteor-space/event-sourcing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteor-space/event-sourcing/merges","archive_url":"https://api.github.com/repos/meteor-space/event-sourcing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteor-space/event-sourcing/downloads","issues_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues{/number}","pulls_url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls{/number}","milestones_url":"https://api.github.com/repos/meteor-space/event-sourcing/milestones{/number}","notifications_url":"https://api.github.com/repos/meteor-space/event-sourcing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteor-space/event-sourcing/labels{/name}","releases_url":"https://api.github.com/repos/meteor-space/event-sourcing/releases{/id}","created_at":"2014-10-17T09:41:30Z","updated_at":"2015-09-16T17:51:22Z","pushed_at":"2015-09-16T13:11:01Z","git_url":"git://github.com/meteor-space/event-sourcing.git","ssh_url":"git@github.com:meteor-space/event-sourcing.git","clone_url":"https://github.com/meteor-space/event-sourcing.git","svn_url":"https://github.com/meteor-space/event-sourcing","homepage":null,"size":664,"stargazers_count":17,"watchers_count":17,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":17,"default_branch":"master"}},"base":{"label":"meteor-space:develop","ref":"develop","sha":"ef4cd86533473e8a7a605168563f0eabac2aae40","user":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"repo":{"id":25350715,"name":"event-sourcing","full_name":"meteor-space/event-sourcing","owner":{"login":"meteor-space","id":13420421,"avatar_url":"https://avatars.githubusercontent.com/u/13420421?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor-space","html_url":"https://github.com/meteor-space","followers_url":"https://api.github.com/users/meteor-space/followers","following_url":"https://api.github.com/users/meteor-space/following{/other_user}","gists_url":"https://api.github.com/users/meteor-space/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor-space/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor-space/subscriptions","organizations_url":"https://api.github.com/users/meteor-space/orgs","repos_url":"https://api.github.com/users/meteor-space/repos","events_url":"https://api.github.com/users/meteor-space/events{/privacy}","received_events_url":"https://api.github.com/users/meteor-space/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteor-space/event-sourcing","description":"CQRS and Event Sourcing Infrastructure for Meteor.","fork":false,"url":"https://api.github.com/repos/meteor-space/event-sourcing","forks_url":"https://api.github.com/repos/meteor-space/event-sourcing/forks","keys_url":"https://api.github.com/repos/meteor-space/event-sourcing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteor-space/event-sourcing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteor-space/event-sourcing/teams","hooks_url":"https://api.github.com/repos/meteor-space/event-sourcing/hooks","issue_events_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues/events{/number}","events_url":"https://api.github.com/repos/meteor-space/event-sourcing/events","assignees_url":"https://api.github.com/repos/meteor-space/event-sourcing/assignees{/user}","branches_url":"https://api.github.com/repos/meteor-space/event-sourcing/branches{/branch}","tags_url":"https://api.github.com/repos/meteor-space/event-sourcing/tags","blobs_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteor-space/event-sourcing/statuses/{sha}","languages_url":"https://api.github.com/repos/meteor-space/event-sourcing/languages","stargazers_url":"https://api.github.com/repos/meteor-space/event-sourcing/stargazers","contributors_url":"https://api.github.com/repos/meteor-space/event-sourcing/contributors","subscribers_url":"https://api.github.com/repos/meteor-space/event-sourcing/subscribers","subscription_url":"https://api.github.com/repos/meteor-space/event-sourcing/subscription","commits_url":"https://api.github.com/repos/meteor-space/event-sourcing/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteor-space/event-sourcing/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteor-space/event-sourcing/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteor-space/event-sourcing/contents/{+path}","compare_url":"https://api.github.com/repos/meteor-space/event-sourcing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteor-space/event-sourcing/merges","archive_url":"https://api.github.com/repos/meteor-space/event-sourcing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteor-space/event-sourcing/downloads","issues_url":"https://api.github.com/repos/meteor-space/event-sourcing/issues{/number}","pulls_url":"https://api.github.com/repos/meteor-space/event-sourcing/pulls{/number}","milestones_url":"https://api.github.com/repos/meteor-space/event-sourcing/milestones{/number}","notifications_url":"https://api.github.com/repos/meteor-space/event-sourcing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteor-space/event-sourcing/labels{/name}","releases_url":"https://api.github.com/repos/meteor-space/event-sourcing/releases{/id}","created_at":"2014-10-17T09:41:30Z","updated_at":"2015-09-16T17:51:22Z","pushed_at":"2015-09-16T13:11:01Z","git_url":"git://github.com/meteor-space/event-sourcing.git","ssh_url":"git@github.com:meteor-space/event-sourcing.git","clone_url":"https://github.com/meteor-space/event-sourcing.git","svn_url":"https://github.com/meteor-space/event-sourcing","homepage":null,"size":664,"stargazers_count":17,"watchers_count":17,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9"},"html":{"href":"https://github.com/meteor-space/event-sourcing/pull/9"},"issue":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/issues/9"},"comments":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/meteor-space/event-sourcing/statuses/c54bf83f2b4512e380d375c7d747850adbde9d86"}}}}