Ejemplo n.º 1
0
		public void ShouldReturnFalseIfHaveNotChanged()
		{
			var engine = new Engine(
				Mock.Of<IDesignDocumentExtractor>(
					e => e.Extract(It.IsAny<IEnumerable<JsonObject>>()) == CreateDesignDocumentMap(docA, docB, docC)
				),
				Mock.Of<IDesignDocumentAssembler>(a => a.Assemble() == CreateDesignDocumentMap(docAWithoutRev, docBWithoutRev, docCWithoutRev)),
				GetNoResultsMessageHandler());

			Assert.False(engine.CheckIfChanged(new Uri("http://example.com/db1")));
		}