Esempio n. 1
0
        public void AddsNavigationName_GivenCollectionType()
        {
            var spec = new StoreIncludeProductsSpec();

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

            actual.Should().Be(expected);
        }
Esempio n. 2
0
        public void ShouldGetCorrectPropertyName_ForExpressionWithCollection()
        {
            var spec = new StoreIncludeProductsSpec();

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

            Assert.Equal(expeted, actual);
        }