public void AddsIncludeExpressionInfoToListWithTypeInclude_GivenIncludeExpression() { var spec = new StoreIncludeAddressSpec(); spec.IncludeExpressions.Should().ContainSingle(); spec.IncludeExpressions.Single().Type.Should().Be(IncludeTypeEnum.Include); }
public void AddsNavigationName_GivenReferenceType() { var spec = new StoreIncludeAddressSpec(); string expected = nameof(Store.Address); string actual = spec.IncludeAggregators.FirstOrDefault().IncludeString; actual.Should().Be(expected); }
public void ShouldGetCorrectPropertyName_ForExpressionWithReferenceType() { var spec = new StoreIncludeAddressSpec(); string expeted = nameof(Store.Address); string actual = spec.IncludeAggregators.FirstOrDefault().IncludeString; Assert.Equal(expeted, actual); }