Customizing a specific string inside a class using AutoFixture
Full source code. I’ve been using AutoFixture for a while with my unit tests. It creates objects with prefilled data, saving me the hassle of manually constructing them. Basic usage If you want a...
View ArticleUsing the HttpClientInterception to Test Methods That Use a HttpClient
Full source code available here. In my previous post I showed a way of testing a controller that uses a HttpClient. I had to mock the HttpMessageHandler pass that to the HttpClient and set a bunch of...
View ArticleTesting Your Code When Using Polly
Full source code here. When developing an application with Polly you will also probably want to write some unit tests. Here are the scenarios I test for – 1. How my code behaves when the policy throws...
View Article
More Pages to Explore .....