About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (21)
- Development (208)
- Security (17)
- Test (32)
- Tooling (166)
- Uncategorized (168)
Category Archives: Test
Be careful when using mocked repository
One of the software development best practices is to use interfaces and dependency injection. But be careful when using a mocked version of your repository. With FakeDbSet an InMemory IDbSet can be created for unit testing purposes. During setup you’d … Continue reading
Loadtesting with Powershell
Our product is in the acceptance testing phase. In the assigned environment the available tooling is very limited. But we must do a loadtest to report on the average requests / second our webservice can handle from a single client. … Continue reading
Loadtest with Azure VM
For an upcoming release we decided to do a loadtest on our Azure test environment. Until now we used a set of local machines for this. The setup uses 6 machines that host our product, which consists of a number … Continue reading
Partial subs with nsubstitute
Finally got the hang of partial s(t)ubs with nsubstitute. The key is that the original method is called when setting up the sub. To avoid this use argument matchers and the DoNotCallBase() method. Property To test/setup the property to return … Continue reading
How to convince developers and managers to do TDD
Questions and answers when introducing test driven development Continue reading