I am developing an application and using Ninject for DI. I would like to be able to inject a different object into a given method depending on the solution configuration I am using. Namely, in a "mock" configuration mode I would like to inject a mock object and in the debug/release configurations I would like to inject a real object.
Having read Ninject and configuration I understand that XML configs offer such a possiblity. However, I would like to do this without the XML if possible. (I tend to agree with Ninject that injection details shouldn't be configurable in the published product...) I am also aware that I could use preprocessor directives to do this. What I would like to know is if this capability exists in Ninject, or if I need extensions/workarounds to accomplish it.