Beispiel #1
0
        public void WillGenerateProperIndex()
        {
            var usersDeleteStatus = new Users_DeleteStatus {
                Conventions = new DocumentConvention()
            };
            var indexDefinition = usersDeleteStatus.CreateIndexDefinition();

            Assert.Contains("Deleted = user[\"@metadata\"][\"Deleted\"]", indexDefinition.Map);
        }
Beispiel #2
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);
        }
Beispiel #3
0
        public void WillGenerateProperIndex()
        {
            var usersDeleteStatus = new Users_DeleteStatus {
                Conventions = new DocumentConventions()
            };
            var indexDefinition = usersDeleteStatus.CreateIndexDefinition();

            Assert.Contains("Deleted = this.MetadataFor(user)[\"Deleted\"]", indexDefinition.Maps.First());
        }
Beispiel #4
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);
		}
Beispiel #5
0
		public void WillGenerateProperIndex()
		{
			var usersDeleteStatus = new Users_DeleteStatus {Conventions = new DocumentConvention()};
			var indexDefinition = usersDeleteStatus.CreateIndexDefinition();
			Assert.Contains("Deleted = user[\"@metadata\"][\"Deleted\"]", indexDefinition.Map);
		}