public void SetUp() { _theRuleCache = new PageActivationRuleCache(new IPageActivationSource[0]); theServices = MockRepository.GenerateMock<IServiceLocator>(); theRequest = new InMemoryFubuRequest(); theServices.Stub(x => x.GetInstance<IFubuRequest>()).Return(theRequest); theActivator = new PageActivator(theServices, _theRuleCache); }
public PageActivator(IServiceLocator services, PageActivationRuleCache ruleCache) { _services = services; _ruleCache = ruleCache; }