Arc.Unit.Tests.Infrastructure.Data.NHibernate.CriteriaExamples.Should_create_property_is_greater_than_property_criteria C# (CSharp) Метод

Should_create_property_is_greater_than_property_criteria() приватный Метод

private Should_create_property_is_greater_than_property_criteria ( ) : void
Результат void
        public void Should_create_property_is_greater_than_property_criteria()
        {
            var expected = DetachedCriteria.For<Person>()
                .CreateAlias("Contacts", "contact", JoinType.InnerJoin)
                .Add(Restrictions.GtProperty("contact.Age", "Age"));

            var contact = Alias.From<Person>(x => x.Contacts).For<Person>();

            var actual = Criteria.For<Person>()
                .InnerJoin(() => contact)
                .With<Person>(x => contact.Age > x.Age);

            AssertCriteria.AreEqual(actual, expected);
        }