Skip to content

Commit

Permalink
Add another example
Browse files Browse the repository at this point in the history
Add another example to the README showing the usage in alexa-london-travel (see martincostello/alexa-london-travel#152).
  • Loading branch information
martincostello committed Nov 6, 2019
1 parent 591cdce commit 1b2401e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -123,7 +123,7 @@ The key parts to call out here are:
1. Once the function processing completes after the `CancellationToken` is signalled, the channel reader is read to obtain the `LambdaTestResponse` for the request that was enqueued.
1. Once this is returned from the channel reader, the response is checked for success using `IsSuccessful` and then the `Content` (which is a `byte[]`) is deserialized into the expected response to be asserted on. Again, you could make your own extensions to deserialize the response content into `string` or objects from JSON.

You can find more examples in the [unit tests](https://github.com/martincostello/lambda-test-server/blob/master/tests/AwsLambdaTestServer.Tests/Examples.cs "Unit test examples").
You can find more examples in the [unit tests](https://github.com/martincostello/lambda-test-server/blob/master/tests/AwsLambdaTestServer.Tests/Examples.cs "Unit test examples") for this project, as well as see how I use the library in the tests for my own [Alexa skill](https://github.com/martincostello/alexa-london-travel/blob/f253be4cbeaf559958e1726d33e1756af1aa6d65/test/LondonTravel.Skill.Tests/EndToEndTests.cs#L28 "Alexa London Travel's end-to-end tests").

### Advanced Usage

Expand Down

0 comments on commit 1b2401e

Please sign in to comment.