Devlico.Us
CodeBetter.Com

Browse by Tags

  • HowTo: Setting Expectations on Stubs using RhinoMocks

    When using a mocking tool like RhinoMocks, one of the features that it can provide is the ability to A) create a stub of an object and B) set expectations on Method/Property calls that are part of that method. Doing this is pretty easy, but like all things there are some ‘gotcha’s’. Below is a step by...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 07-25-2007
  • Using RhinoMocks with StructureMap to mock expected calls

    What do you do when you are writing a test for a piece of code that calls out to an ‘out of your control’ service such as a web service or email server? If you are like most of us, you simply allow your test to make the call and ‘hope’ that the service is up. However, this is really bad. Having your...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 07-24-2007
  • Mocking a Web Service Proxy

    Today I finally had to create a mock of a web service proxy, what fun. Of course the first go at it failed because I did not think about the fact that the web service proxy is NOT serializable. This sucked, so what was I to do. Well, fortunately for me web service proxy classes are partial’s, so I am...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 07-05-2007
  • Rhino Mocks vs NMock: Part 1, Stubs

    Over the past few months I have really started to believe in the use of Mocks. When I first started using mocks, I started with NMock (mostly because that is what we had at work). Shortly after that I started playing around with Rhino Mocks at home. Since I have been playing around with both frameworks...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 06-13-2007
Page 1 of 1 (4 items)

Our Sponsors

Red-Gate!