{"action":"created","issue":{"url":"https://api.github.com/repos/TNG/JGiven/issues/201","repository_url":"https://api.github.com/repos/TNG/JGiven","labels_url":"https://api.github.com/repos/TNG/JGiven/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/TNG/JGiven/issues/201/comments","events_url":"https://api.github.com/repos/TNG/JGiven/issues/201/events","html_url":"https://github.com/TNG/JGiven/issues/201","id":148985670,"number":201,"title":"Alternative usage of external stages","user":{"login":"Woyten","id":18292030,"avatar_url":"https://avatars.githubusercontent.com/u/18292030?v=3","gravatar_id":"","url":"https://api.github.com/users/Woyten","html_url":"https://github.com/Woyten","followers_url":"https://api.github.com/users/Woyten/followers","following_url":"https://api.github.com/users/Woyten/following{/other_user}","gists_url":"https://api.github.com/users/Woyten/gists{/gist_id}","starred_url":"https://api.github.com/users/Woyten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Woyten/subscriptions","organizations_url":"https://api.github.com/users/Woyten/orgs","repos_url":"https://api.github.com/users/Woyten/repos","events_url":"https://api.github.com/users/Woyten/events{/privacy}","received_events_url":"https://api.github.com/users/Woyten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TNG/JGiven/labels/core","name":"core","color":"5319e7"},{"url":"https://api.github.com/repos/TNG/JGiven/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-04-17T19:28:32Z","updated_at":"2016-08-01T08:41:54Z","closed_at":null,"body":"I think it would sometimes be easier if we could use an external stage `GivenTestData` via `given(GivenTestData.class)` or `and(GivenTestData.class)` instead of injecting the stage via `@ScenarioStage`.\r\n\r\nThe following code:\r\n```\r\ngiven().some_configuration();\r\ngivenTestData.and().some_test_data();\r\n```\r\nCould then be written as:\r\n```\r\ngiven().some_configuration()\r\n    .and(GivenTestData.class).some_test_data();\r\n```"},"comment":{"url":"https://api.github.com/repos/TNG/JGiven/issues/comments/236522360","html_url":"https://github.com/TNG/JGiven/issues/201#issuecomment-236522360","issue_url":"https://api.github.com/repos/TNG/JGiven/issues/201","id":236522360,"user":{"login":"Rubbiroid","id":1006376,"avatar_url":"https://avatars.githubusercontent.com/u/1006376?v=3","gravatar_id":"","url":"https://api.github.com/users/Rubbiroid","html_url":"https://github.com/Rubbiroid","followers_url":"https://api.github.com/users/Rubbiroid/followers","following_url":"https://api.github.com/users/Rubbiroid/following{/other_user}","gists_url":"https://api.github.com/users/Rubbiroid/gists{/gist_id}","starred_url":"https://api.github.com/users/Rubbiroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rubbiroid/subscriptions","organizations_url":"https://api.github.com/users/Rubbiroid/orgs","repos_url":"https://api.github.com/users/Rubbiroid/repos","events_url":"https://api.github.com/users/Rubbiroid/events{/privacy}","received_events_url":"https://api.github.com/users/Rubbiroid/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T08:41:53Z","updated_at":"2016-08-01T08:41:53Z","body":"Perhaps we can use it like so:\r\n\r\n`@ScenarioStage\r\nprivate WhenSomething<?> whenSomething\r\n\r\n@Test\r\npublic test() {\r\n  given().nop();\r\n\r\n when().nop().\r\n  .and(whenSomething).some_other();\r\n}`"}}
{"actor":{"display_login":"Rubbiroid"}}