protected override void beforeEach() { var registry = new FubuRegistry(); registry.IncludeDiagnostics(true); registry.Actions.IncludeType <Hello>(); theGraph = registry.BuildGraph(); ClassUnderTest.Configure(theGraph); }
public void BeforeEach() { _parent = new FubuRegistry(); _parent.IncludeDiagnostics(true); _import = new FubuRegistry(); _import.IncludeDiagnostics(true); _import.Actions .IncludeType <Handler1>() .IncludeType <Handler2>(); _import.Configure(x => { _importObserver = x.Observer; _importActions = x.Actions() .Where(a => a.HandlerType.Namespace == GetType().Namespace); }); _parent.Import(_import, "import"); _parentObserver = _parent.BuildGraph().Observer; }