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