This post originated from an RSS feed registered with .NET Buzz
by Maruis Marais.
Original Post: Using TypeMock.NET to mock a external dependency
Feed Title: exceptionz
Feed URL: http://feeds.feedburner.com/Exceptionz
Feed Description: I am an XP, TDD, OO and .NET enthusiast. Things like Design Patterns makes my pulse race, I love learning exciting new things and to share my thoughts and techniques with the world. So join me and together we can explore the awesome world of software development
In the scenario where your class consumes an external Web Service, testing your class is hard and difficult due to this external dependency on the Web Service. You could use a Service Stub,
where you separate the dependency using an interface, but this forces you to
create more code due to creating an interface and the service stub
implementation. So I thought there must be a better, easier, less