[TestFixture]
public class SearchExtensionTester
{
private FubuRegistry _fubuRegistry;
private BehaviorGraph _graph;
[SetUp]
public void setup()
{
_fubuRegistry = new FubuRegistry();
_fubuRegistry.Actions.IncludeClassesSuffixedWithController();
_fubuRegistry.Applies
.ToAssembly(typeof (FakeEntity).Assembly);
_fubuRegistry.Import<EntitySearchExtension>();
_graph = _fubuRegistry.BuildGraph();
}
[Test]
public void _graph_should_contain_a_generic_search_action()
{
_graph.Actions()
.Where(call => call.HandlerType.Closes(typeof (EntitySearchAction<>)))
.Count().ShouldBeGreaterThan(0);
}
}
public class FakeEntity : DomainEntity{}