Useless unit tests

I’m currently in the process of restructuring an ASP MVC project. The system was built around 9 months ago and unfortunately there are a few issues around the architecture of the system and as a result there is business logic that has creeped into the ‘data’ project. The current…

Don’t be afraid to delete code

Today I did something drastic! I deleted almost all the code I had been working on over the last week or so and started again. I’m currently working on a new application at work being written in AngularJS. This is the first real experience I’ve had with AngularJS…

Simple Injector MVC and Web API

So you want to have both WebAPI and MVC controllers in the same project. You add in the route configurations and the WebAPI controllers and come to run the project however you get an exception like this.. ExceptionMessage=Type 'MyProject.Web.Controllers.api.ProductController' does not have a default constructor…

Ah, so that's reflection!

Reflection in .NET is something I’d heard of but never knew what it was. I’d also never thought to find out. That all changed when working on a .NET MVC project recently. One of the requirements for the project I was working on was to create an audit…

Entity Framework Is Rounding My Decimals

So the last few hours I’ve been racking my brain trying to figure out at what point I was doing an INT conversion. After stepping through the code from the web tier down to the EF context no luck! I have a stored procedure in SQL Server 2014 that…

Development Environment Part 1 (.NET Development)

Overview I always find it interesting to see how different people work. What tools they use and how they use them? Any plugins that they find useful? Even things like colour schemes and fonts that they like to work with. I find it helps discover new ways of working to…