For those of you looking to gain some experience working with RestSharp, here are all the materials from a workshop I've created and delivered multiple times to good reviews. Feel free to use, share and adapt these materials as you see fit.
.NET 6, 7 or 8 and an IDE of your choice. That's it.
- Writing basic tests for REST APIs using RestSharp
- Creating and running data driven tests using RestSharp and NUnit
- (De-)serializing C# objects to/from JSON
- Writing tests for GraphQL APIs
All API calls that you should make in the exercises are mocked using WireMock.Net. All mock definitions are included in the project, so you can focus on learning RestSharp.
dotnet test
The .pptx/.pdf/.odp file in the root folder contains all slides from the workshop. Again, feel free to use, share and adapt them to fit your own requirements.
Feel free to file an issue here or send me an email at bas@ontestautomation.com.
Sure, I'd love to. Again, send me an email and I'll be happy to discuss options. In house or at your conference, I'm sure we can work something out.