Exemple #1
0
        public void AddsNavigationName_GivenSimpleType()
        {
            var spec = new StoreIncludeNameSpec();

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

            actual.Should().Be(expected);
        }
Exemple #2
0
        public void ShouldGetCorrectPropertyName_ForExpressionWithSimpleType()
        {
            var spec = new StoreIncludeNameSpec();

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

            Assert.Equal(expeted, actual);
        }
Exemple #3
0
        public void AddsAggregatorToList_GivenExpression()
        {
            var spec = new StoreIncludeNameSpec();

            spec.IncludeAggregators.Should().ContainSingle();
        }