About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (21)
- Development (217)
- Security (19)
- Test (32)
- Tooling (175)
- Uncategorized (169)
Category Archives: Development
No Default Instance defined solved by doing less
StructureMap threw an exception after some refactoring StructureMap Exception Code: 202 No Default Instance defined for PluginFamily IDoSomething Solved by removing duplicates from assembly scan: Turned out the IDoSomething was mapped to 2 implementations (of the same type) and StructureMap … Continue reading
Strange characters after reading and writing a textfile
This week I helped out my Business Intelligence colleagues again. After tackling another problem with a regular expression, the end result contained strange characters. In the output below there is a question mark icon where the Pound (£) sign used … Continue reading
LINQ to Entities does not recognize the method
After my unit tests showed all green, there was still a bug in my code. System.NotSupportedException: LINQ to Entities does not recognize the method ‘System.Collections.Generic.IList`1[iCal.ISchedulerEvent] ProcessItem(iCal.ISchedulerEvent)’ method, and this method cannot be translated into a store expression. Solution is to … 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
Integration Test with Entity Framework Codefirst
Our database is developed using Entity Framework Codefirst. Everything in code. Enabled migrations to update existing environments as we roll out. The code passed all the unittests, but it didn’t feel right. Time for an integration test. This brought me … Continue reading
Posted in Development
Tagged Code, codefirst, EF, Entity Framework, integration test, integration tests, unittest
Leave a comment