{"action":"opened","issue":{"url":"https://api.github.com/repos/yreynhout/Projac/issues/17","labels_url":"https://api.github.com/repos/yreynhout/Projac/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/yreynhout/Projac/issues/17/comments","events_url":"https://api.github.com/repos/yreynhout/Projac/issues/17/events","html_url":"https://github.com/yreynhout/Projac/issues/17","id":111500674,"number":17,"title":"Add a testing library for Projac.Connector","user":{"login":"yreynhout","id":142834,"avatar_url":"https://avatars.githubusercontent.com/u/142834?v=3","gravatar_id":"","url":"https://api.github.com/users/yreynhout","html_url":"https://github.com/yreynhout","followers_url":"https://api.github.com/users/yreynhout/followers","following_url":"https://api.github.com/users/yreynhout/following{/other_user}","gists_url":"https://api.github.com/users/yreynhout/gists{/gist_id}","starred_url":"https://api.github.com/users/yreynhout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yreynhout/subscriptions","organizations_url":"https://api.github.com/users/yreynhout/orgs","repos_url":"https://api.github.com/users/yreynhout/repos","events_url":"https://api.github.com/users/yreynhout/events{/privacy}","received_events_url":"https://api.github.com/users/yreynhout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T21:49:53Z","updated_at":"2015-10-14T21:49:53Z","closed_at":null,"body":"Something like ...\r\n\r\n```csharp\r\npublic class PortfolioProjectionTests\r\n{\r\n  public void when_adding_a_portfolio()\r\n  {\r\n    new ConnectedProjectionScenario<IAsyncDocumentSession>(new PortfolioProject()).\r\n      When(new PortfolioAdded { PortfolioId = 123, Name = \"Picasso\" }).\r\n      Verify(client => async {\r\n        if((await client.\r\n          LoadAsync<PortfolioDocument>(123)).\r\n          Equals(new PortfolioDocument { Id = 123, Name = \"Picasso\" }))\r\n        {\r\n          return VerificationResult.Pass();\r\n        }\r\n        return VerificationResult.Fail(\"Boohoo, projection failed.\");\r\n      }).\r\n      Assert();\r\n  }\r\n}"}}