AboutThis blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.
Most used tags
Tag Archives: fakes
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 😉
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
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
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
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