Justin Rudd [mailto:[EMAIL PROTECTED]] wrote:

> I was wondering, how many people do this?  What are some
> other ways that you are accomplishing the same thing?

Lots of people do this, it's a well-known testing pattern referred to as
Mock Objects[1].

However, you run into a problem using Mock Objects when no interfaces have
been factored out in the component design. So there's no (easy) way for you
to put a mock message queue system into place because MS didn't design an
IMessageQueue or IMessage interface in the first place. The only thing you
can do is create your own abstract layer on top of theirs.

This is just one reason why you should still design with interfaces first.

HTH,
Drew

[1] http://www.mockobjects.com/

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to