Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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());
        }
Exemplo n.º 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);
		}
Exemplo n.º 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);
		}