Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save muhammadghazali/5413765 to your computer and use it in GitHub Desktop.
Save muhammadghazali/5413765 to your computer and use it in GitHub Desktop.
Get Event Details Acceptance Test

Scenario 1: Event Details request should return response in JSON

Given Event Details resource is accessible

And Event Details resource is accessible

When the client request the Event Details in JSON

Then the Web API should return Event Details in JSON

And returned response is supplied with the Event Details resource URL

Scenario 2: Event Details request should return response in XML

Given Event Details resource is accessible

And Event Details resource is accessible

When the client request the Event Details in XML

Then the Web API should return Event Details in XML

And returned response is supplied with the Event Details resource URL

Scenario 3: Unsupported Content-Type should return HTTP 406 code

Given the Web API only support JSON and XML for the response

When the client request the resource with Content-Type other than JSON or XML

Then the Web API should return HTTP 406 code

And returned reponse should be contained an client error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment