Dependency Injection and Moqing
Posted
by rkrauter
on Stack Overflow
See other posts from Stack Overflow
or by rkrauter
Published on 2010-06-12T17:48:23Z
Indexed on
2010/06/12
17:52 UTC
Read the original article
Hit count: 177
asp.net-mvc-2
The way I understand it, DI allows you to use an IoC container to do something like
If a constructor needs an IFoo, use a concrete class Foo : IFoo.
But how is a Mock object using Moq different? Doesn't it also use DI to create a fake Foo?
Thanks.
© Stack Overflow or respective owner