About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (20)
- Development (208)
- Security (17)
- Test (32)
- Tooling (166)
- Uncategorized (168)
Most used tags
Tag Archives: xunit
Week 35 roundup
Last week recap and links: Fun with json and trello in powershell where Jamie shows how to have fun with invoke-restmethod and some trello API stuff Xunit Test Patterns is where to look for unittest best practices. Nuget must haves … Continue reading
Solve concurrency database issues in nServicebus
When we configure nServicebus to run with multiple thread (MaximumConcurrencyLevel) sometimes duplicate records are inserted. This happens when the endpoint has been down for maintenance and the queue has filled up with messages. Repro This is not ideal, but can … Continue reading
Posted in Development
Tagged Code, concurrency, database, deadlock, lock, nservicebus, xunit
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
Week 17 roundup
Last week recap an links: Found this awesome tool Service Bus MQ Manager for managing my NServiceBus MSMQ. Helped the xunit team with a visual studio online exception by blogging about it here This weeks Evernote pick was CloudMagic. Ever … Continue reading
Reproduce unit test failures from Hosted Build Controller
Our builds succeed with warnings. After investigation of the output we noticed failing unit tests. But local they run fine. Here’s what we did to troubleshoot and fix the issue. First we downloaded the build output from the drop location. … Continue reading
Posted in Development
Tagged hosted build controller, unittest, visual studio online, visualstudio.com, xunit
1 Comment