public void AddsIncludeExpressionInfoToListWithTypeInclude_GivenIncludeExpression()
        {
            var spec = new StoreIncludeAddressSpec();

            spec.IncludeExpressions.Should().ContainSingle();
            spec.IncludeExpressions.Single().Type.Should().Be(IncludeTypeEnum.Include);
        }
Beispiel #2
0
        public void AddsNavigationName_GivenReferenceType()
        {
            var spec = new StoreIncludeAddressSpec();

            string expected = nameof(Store.Address);
            string actual   = spec.IncludeAggregators.FirstOrDefault().IncludeString;

            actual.Should().Be(expected);
        }
Beispiel #3
0
        public void ShouldGetCorrectPropertyName_ForExpressionWithReferenceType()
        {
            var spec = new StoreIncludeAddressSpec();

            string expeted = nameof(Store.Address);
            string actual  = spec.IncludeAggregators.FirstOrDefault().IncludeString;

            Assert.Equal(expeted, actual);
        }