public void try_to_attach_views_from_packages_does_not_replace_existing_facilities() { var childFacility = new Test1Facility(); _child.Views.Facility(childFacility); _parent.Import(_child, "import"); _parent.BuildGraph(); _facility1.Invocations.ShouldEqual(1); childFacility.Invocations.ShouldEqual(1); }
public void before_each() { _parent = new FubuRegistry(); _child = new FubuRegistry(); _facility1 = new Test1Facility(); _facility2 = new Test2Facility(); _parent.Views.Facility(_facility1); _parent.Views.TryToAttachWithDefaultConventions(); _parent.Views.TryToAttachViewsInPackages(); _parent.Applies.ToAssembly(GetType().Assembly); _parent.Actions.IncludeType <EvenMoreAwesomeController>(); }
public void before_each() { _parent = new FubuRegistry(); _child = new FubuRegistry(); _facility1 = new Test1Facility(); _facility2 = new Test2Facility(); _parent.Views.Facility(_facility1); _parent.Views.TryToAttachWithDefaultConventions(); _parent.Views.TryToAttachViewsInPackages(); _parent.Applies.ToAssembly(GetType().Assembly); _parent.Actions.IncludeType<EvenMoreAwesomeController>(); }