Contents tagged with Mocking
-
Using Lambdas for return values in Rhino.Mocks
In a recent StackOverflow question, someone showed some sample code they’d like to be able to use. The particular syntax they used isn’t supported by Rhino.Mocks, but it was an interesting idea that I thought could be easily implemented with an extension method.
-
Rhino.Mocks, Lambdas and Expectations
An interesting post on the Rhino.Mocks users list that I thought I’d share.
-
Verbosity Isn’t Always a Bad Thing
There was a message posted to the Rhino.Mocks forums yesterday about verifying a single parameter of a method that accepted 5 parameters. The code looked like this:
-
Talks Submitted for Ann Arbor Day of .NET 2010
Just submitted my session abstracts for Ann Arbor's Day of .NET 2010.
-
Looking Forward to 2010
Yes, the first month of 2010 is almost gone and I'm just now getting around blogging about the past year and the year ahead. I guess time management should be on my to-do list for this year?
-
Use Dependency Injection To Simplify Application Settings
We've all seen and written code that accesses data from our app.config or web.config file. We'll throw some simple settings in there: