public override void SetUp() { base.SetUp(); var wrapper = new N2.Tests.Fakes.FakeWebContextWrapper(); parser = TestSupport.Setup(persister, wrapper, new Host(wrapper, 1, 1)); root = CreateOneItem<N2.Tests.Edit.LinkTracker.Items.TrackableItem>(1, "root", null); item1 = CreateOneItem<N2.Tests.Edit.LinkTracker.Items.TrackableItem>(2, "item1", root); item2 = CreateOneItem<N2.Tests.Edit.LinkTracker.Items.TrackableItem>(3, "item2", root); var errorHandler = new FakeErrorHandler(); var monitor = new N2.Plugin.ConnectionMonitor(); tracker = new Tracker(persister, detailRepository = new FakeRepository<ContentDetail>(), parser, monitor, errorHandler, new EditSection()); monitor.SetConnected(Installation.SystemStatusLevel.UpAndRunning); }
public override void SetUp() { base.SetUp(); var wrapper = new N2.Tests.Fakes.FakeWebContextWrapper(); parser = new UrlParser(persister, wrapper, new Host(wrapper, 1, 1), new HostSection()); root = CreateOneItem<N2.Tests.Edit.LinkTracker.Items.TrackableItem>(1, "root", null); item1 = CreateOneItem<N2.Tests.Edit.LinkTracker.Items.TrackableItem>(2, "item1", root); item2 = CreateOneItem<N2.Tests.Edit.LinkTracker.Items.TrackableItem>(3, "item2", root); var errorHandler = new FakeErrorHandler(); linkFactory = new Tracker(persister, null, parser, errorHandler); linkFactory.Start(); }