public void CallsFooImplementation()
 {
     var target = new HandlerRunnerBuilder(typeof (Foo), "GET").BuildRunner();
     var context = new Mocks.MockContext();
     context.Request = new MockRequest { Headers = new Dictionary<string, string[]> { { HeaderKeys.Accept, new[] { "text/html" } } } };
     var foo = new Foo();
     target(foo, context);
     Assert.True(foo.Called);
 }
 public void CallsFooImplementation()
 {
     var target = new HandlerRunnerBuilder(typeof (Foo), "GET").BuildRunner();
     var context = new Mocks.MockContext();
     context.Request = new MockRequest {AcceptTypes = new[] {"text/html"}};
     var foo = new Foo();
     target(foo, context);
     Assert.True(foo.Called);
 }