Tag Archives: fakes

Microsoft Fakes misbehave on buildserver

We use Microsoft Fakes to isolate some legacy code. Today I added some tests that passed on my machine, but failed on the buildserver. 😦 After reading this stackoverflow post I added the and the builds became green again 😉

Posted in Development | Tagged , | Leave a comment

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

Week roundup

Last week recap and links: Creating Help Pages for ASP.NET Web API, this is awesome, using MVC for documenting itself Using Stubs and Shims to Test with Microsoft Fakes, just before the conclusion he shows the fakes.xml syntax, didn’t knew … Continue reading

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

Week roundup

Last week recap and links: Using Fusion Log Viewer to Debug Obscure Loader Errors, by Scott Hanselman SETUP FOR TESTING JS WITH JASMINE, KARMA & PHANTOMJS AND BROWSERSTACK (ANGULARJS), not my cup of tea but always nice to see someone … Continue reading

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

Visual Studio Shims and Fakes

Microsoft Visual Studio 2013 includes Fakes (Premium and above) to isolate existing code. This involves intercepting calls to the framework and rerouting them to Shims. These Shims are created by right clicking a reference and selecting “Add Fakes Assembly”. But … Continue reading

Posted in Development | Tagged , | 2 Comments

Windows Azure SDK better with wrappers

Since Windows Azure SDK 1.2 back in 2010 I’m trying to get my unittests up and running. I posted about it on the Microsoft forum and consulted the JustMock forum. Nobody was able to provide the solution as it looks … Continue reading

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