Ejemplo n.º 1
0
		public Navigator(IPersister persister, IHost host, VirtualNodeFactory nodes, ContentSource sources)
		{
			this.persister = persister;
			this.host = host;
			this.virtualNodes = nodes;
			this.sources = sources;
		}
Ejemplo n.º 2
0
 public override void SetUp()
 {
     base.SetUp();
     
     webContext = new ThreadContext();
     host = new Host(webContext, 1, 1);
     source = TestSupport.SetupContentSource(webContext, host, persister.Repository);
 }
Ejemplo n.º 3
0
		public void DatabaseSource_IsOrdered_AfterInterfaceSource()
		{
			ContentSource cs = new ContentSource(new Fakes.FakeSecurityManager(), new SourceBase[] { 
				new DatabaseSource(null, null), 
				new TestSource()
			});

			Assert.That(cs.Sources.Last(), Is.TypeOf<DatabaseSource>());
		}
Ejemplo n.º 4
0
        public void DatabaseSource_IsOrderedLast()
        {
            ContentSource cs = new ContentSource(new Fakes.FakeSecurityManager(), new DatabaseSource(null, null), new ActiveContentSource());

            Assert.That(cs.Sources.Last(), Is.TypeOf<DatabaseSource>());
        }
Ejemplo n.º 5
0
		private static ContentSource CreateSource()
		{
			ContentSource cs = new ContentSource(new Fakes.FakeSecurityManager(), new SourceBase[] { 
				new DatabaseSource(null, null), 
				new TestSource()
			});
			return cs;
		}