Quantcast
Channel: Testing – no dogma blog
Browsing all 3 articles
Browse latest View live

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 Article



Using 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 Article

Testing 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
Browsing all 3 articles
Browse latest View live




Latest Images