Created
February 3, 2014 19:30
-
-
Save smhinsey/8790686 to your computer and use it in GitHub Desktop.
Example Service Spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Forum Commenting | |
In order to interact with a Forum | |
As a Forum User | |
I want to create Posts in that Forum | |
Scenario: Comment on Post | |
Given the agent ForumAgent | |
When I publish the command PublishPost: | |
| Title | Body | CategoryIdentifier | AuthorIdentifier | ForumIdentifier | | |
| Post Title | Post Body | 11111111-1111-1111-1111-111111111111 | 00000000-0000-0000-0000-000000000000 | 33333333-3333-3333-3333-333333333333 | | |
And the command is complete | |
When I publish the command CommentOnPost: | |
| Title | Body | CategoryIdentifier | AuthorIdentifier | ForumIdentifier | | |
| Comment Title | Comment Body | 11111111-1111-1111-1111-111111111111 | 00000000-0000-0000-0000-000000000000 | 33333333-3333-3333-3333-333333333333 | | |
And the command is complete | |
Then run FindByTitle on PostQueries with: | |
| Title | | |
| Post Title | | |
And the Post has values: | |
| Title | Body | CategoryIdentifier | AuthorIdentifier | ForumIdentifier | AuthorDisplayName | CommentCount | | |
| Post Title | Post Body | 11111111-1111-1111-1111-111111111111 | 00000000-0000-0000-0000-000000000000 | 33333333-3333-3333-3333-333333333333 | Anonymous | 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment