If he is aware of just how number of times I end up on martinfowler.com, I am sure the premier Calgarian geek might think I am virtually stalking him.
Today’s foray was to find out more about fluent interfaces and method chaining. I have been using Phil Haack’s HttpSimulator quite heavily in the last few days and want APIs that I write to be as easy to use and part of such readable code.
For example:
using (HttpSimulator simulator = new HttpSimulator())
{
simulator
.SetFormVariable("Test1", "Value1")
.SetFormVariable("Test2", "Value2")
.SimulateRequest(new Uri("http://localhost/Test.aspx"));
}