public override void SetUp() { base.SetUp(); parser = mocks.StrictMock<IUrlParser>(); mocks.ReplayAll(); IntegrityManager integrity = new IntegrityManager(definitions, persister.Repository, parser); IntegrityEnforcer enforcer = new IntegrityEnforcer(persister, integrity, activator); enforcer.Start(); new BehaviorInvoker(persister, new N2.Definitions.Static.DefinitionMap()).Start(); }
public override void SetUp() { base.SetUp(); parser = mocks.StrictMock<IUrlParser>(); mocks.ReplayAll(); finder = new FakeItemFinder(() => Enumerable.Empty<ContentItem>()); IntegrityManager integrity = new IntegrityManager(definitions, finder, parser); IntegrityEnforcer enforcer = new IntegrityEnforcer(persister, integrity, activator); enforcer.Start(); new BehaviorInvoker(persister, new N2.Definitions.Static.DefinitionMap()).Start(); }
public override void SetUp() { base.SetUp(); CreatePersister(); parser = mocks.StrictMock<IUrlParser>(); ITypeFinder typeFinder = CreateTypeFinder(); DefinitionBuilder builder = new DefinitionBuilder(new DefinitionMap(), typeFinder, new TransformerBase<IUniquelyNamed>[0], TestSupport.SetupEngineSection()); IItemNotifier notifier = mocks.DynamicMock<IItemNotifier>(); mocks.Replay(notifier); var changer = new N2.Edit.Workflow.StateChanger(); activator = new ContentActivator(changer, notifier, new EmptyProxyFactory()); definitions = new DefinitionManager(new[] { new DefinitionProvider(builder) }, new ITemplateProvider[0], activator, changer, new DefinitionMap()); finder = new FakeItemFinder(() => Enumerable.Empty<ContentItem>()); integrityManger = new IntegrityManager(definitions, finder, parser); IntegrityEnforcer enforcer = new IntegrityEnforcer(persister, integrityManger, activator); enforcer.Start(); }
public override void SetUp() { base.SetUp(); CreatePersister(); parser = mocks.StrictMock<IUrlParser>(); ITypeFinder typeFinder = CreateTypeFinder(); DefinitionBuilder builder = new DefinitionBuilder(typeFinder, new EngineSection(), new FakeEditUrlManager()); IItemNotifier notifier = mocks.DynamicMock<IItemNotifier>(); mocks.Replay(notifier); definitions = new DefinitionManager(builder, new N2.Edit.Workflow.StateChanger(), notifier, new EmptyProxyFactory()); finder = new FakeItemFinder(definitions, () => Enumerable.Empty<ContentItem>()); integrityManger = new IntegrityManager(definitions, finder, parser); IntegrityEnforcer enforcer = new IntegrityEnforcer(persister, integrityManger, definitions); enforcer.Start(); }
public override void SetUp() { base.SetUp(); parser = mocks.StrictMock<IUrlParser>(); mocks.ReplayAll(); finder = new FakeItemFinder(definitions, () => Enumerable.Empty<ContentItem>()); IntegrityManager integrity = new IntegrityManager(definitions, finder, parser); IntegrityEnforcer enforcer = new IntegrityEnforcer(persister, integrity, definitions); enforcer.Start(); }