I'm quite new to unit testing and I struggle one thing. I want to create WebAPI in ASP.NET MVC with test project containing test methods for the controllers. I've read quite a lot about IoC/DI and I've already used it in other projects, but not with unit testing. As one of many advatages of IoC/DI is often mentioned mock classes injection for test methods, but I've never find a way how to do it using separate projects.
So how do I set the IoC/DI container so it contains both production and mock classes, but of course the mock classes are not interfearing with the production code and are separately located and only visible in the test project?