public void WillPreserverTheCasts() { var indexDefinition = new WithCasting { Conventions = new DocumentConvention() }.CreateIndexDefinition(); Assert.Equal("docs.People\r\n\t.Select(person => new {Id = ((System.Int64)(person.Name.Length))})", indexDefinition.Map); }
public void WillPreserverTheCasts() { var indexDefinition = new WithCasting { Conventions = new DocumentConvention() }.CreateIndexDefinition(); Assert.Contains("Id = ((System.Int64)(person.Name.Length))", indexDefinition.Map); }
public void WillPreserverTheCasts() { var indexDefinition = new WithCasting().CreateIndexDefinition(); var map = indexDefinition.Maps.First(); Assert.Contains("docs.People.Select(person => new {", map); Assert.Contains("Id = ((long) person.Name.Length)", map); }
public void WillPreserverTheCasts() { var indexDefinition = new WithCasting { Conventions = new DocumentConvention() }.CreateIndexDefinition(); Assert.Contains("docs.People.Select(person => new {", indexDefinition.Map); Assert.Contains("Id = ((long) person.Name.Length)", indexDefinition.Map); }
public void WillPreserverTheCasts() { var indexDefinition = new WithCasting { Conventions = new DocumentConventions { PrettifyGeneratedLinqExpressions = false } }.CreateIndexDefinition(); var map = indexDefinition.Maps.First(); Assert.Contains("docs.People.Select(person => new {", map); Assert.Contains("Id = ((long) person.Name.Length)", map); }
public void WillPreserverTheCasts() { var indexDefinition = new WithCasting { #pragma warning disable CS0618 // Type or member is obsolete Conventions = new DocumentConventions { PrettifyGeneratedLinqExpressions = false } #pragma warning restore CS0618 // Type or member is obsolete }.CreateIndexDefinition(); var map = indexDefinition.Maps.First(); Assert.Contains("docs.People.Select(person => new {", map); Assert.Contains("Id = ((long) person.Name.Length)", map); }