Category Archives: Development

Dotnet development

First look at OData

I’ve heard about OData back in 2012 but never used it. Now I might have a use case for OData and want to explore it. Below are the parts of my sample WCF DataService project. Every part has the exceptions … Continue reading

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

Crashing unit tests in Visual Studio

Today I got my unit tests to crash in Visual Studio. Right after some refactoring the tests stopped working and the output window contained the following message: The active Test Run was aborted because the execution process exited unexpectedly. To … Continue reading

Posted in Development | Tagged , , | 3 Comments

Reduce wait time with tasks

In our project we group multiple machines and request information from each one. Sometimes this takes very long. All machines are contacted in sequence. When one machine is offline the request will timeout in 10 seconds (default WCF behavior) This … Continue reading

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

Async unit test

With the .NET framework 4.5 making stuff asynchronous has become very easy with async-await. I’ve looked into unit testing this new way of programming and found that Microsoft thought about this too.
During my exercise I had to replace my trusted RhinoMocks by NSubstitute when the tests are run in parallel. Seems that RhinoMocks is not thread safe. More about that in the references. Continue reading

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

Bind WPF control to Window property

I’ve decided to write this small post on how to bind a WPF control to a property of the Window code behind. Every time I forget one of the steps and end up searching for this: Create a dependency property, … Continue reading

Posted in Development | Tagged , | Leave a comment