public void Should_Provide_Callbacks_Greedily() { var handler = new CustomHandler() + new CustomHandler(); var bars = handler.ResolveAll <Bar>(); Assert.AreEqual(4, bars.Length); bars = handler.ResolveAll <SuperBar>(); Assert.AreEqual(2, bars.Length); }
public void Should_Provide_All_Callbacks() { var handler = new CustomHandler(); var bars = handler.ResolveAll <Bar>(); Assert.AreEqual(2, bars.Length); }