Пример #1
0
		public void WillGenerateProperIndex()
		{
			var usersDeleteStatus = new Users_DeleteStatus {Conventions = new DocumentConvention()};
			var indexDefinition = usersDeleteStatus.CreateIndexDefinition();
			Assert.Equal("docs.Users\r\n\t.Select(user => new {Deleted = user[\"@metadata\"][\"Deleted\"]})", indexDefinition.Map);
		}
Пример #2
0
		public void WillGenerateProperIndex()
		{
			var usersDeleteStatus = new Users_DeleteStatus {Conventions = new DocumentConvention()};
			var indexDefinition = usersDeleteStatus.CreateIndexDefinition();
			Assert.Contains("Deleted = user[\"@metadata\"][\"Deleted\"]", indexDefinition.Map);
		}