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

Posted in Test | Tagged , , , , , | Leave a comment

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

Posted in Test | Tagged , , | Leave a comment

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

Posted in Test | Tagged , | Leave a comment

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

Posted in Test | Tagged , , | 2 Comments

How to convince developers and managers to do TDD

Questions and answers when introducing test driven development Continue reading

Posted in Test | Tagged , , | Leave a comment