public void SetUp() { theRegistry = new LoggedFubuRegistry(); // Do it this way so that it gets the assembly package container = new Container(); theGraph = FubuApplication.For(theRegistry).StructureMap(container) .Bootstrap().Factory.Get <BehaviorGraph>(); theLogs = container.GetInstance <ConfigLog>(); }
public void SetUp() { theRegistry = new LoggedFubuRegistry(); // Do it this way so that it gets the assembly package container = new Container(); theGraph = FubuApplication.For(theRegistry).StructureMap(container) .Bootstrap().Factory.Get <BehaviorGraph>(); theGraph.BehaviorFor <LoggedEndpoint>(x => x.get_logged_hello()).ShouldNotBeNull(); theLogs = container.GetInstance <ConfigLog>(); }
public void SetUp() { theRegistry = new LoggedFubuRegistry(); // Do it this way so that it gets the assembly package container = new Container(); theGraph = FubuApplication.For(theRegistry).StructureMap(container) .Bootstrap().Factory.Get<BehaviorGraph>(); theGraph.BehaviorFor<LoggedEndpoint>(x => x.get_logged_hello()).ShouldNotBeNull(); theLogs = container.GetInstance<ConfigLog>(); }
public void SetUp() { theRegistry = new LoggedFubuRegistry(); // Do it this way so that it gets the assembly package container = new Container(); theGraph = FubuApplication.For(theRegistry).StructureMap(container) .Bootstrap().Factory.Get<BehaviorGraph>(); theLogs = container.GetInstance<ConfigLog>(); }