public void IncludeAggregator_AddNavigationPropertyName_ReturnsCorrectIncludeString() { var expectedString = $"{nameof(Company)}.{nameof(Company.Stores)}.{nameof(Store.Products)}"; var includeAggregator = new IncludeAggregator(nameof(Company)); includeAggregator.AddNavigationPropertyName(nameof(Company.Stores)); includeAggregator.AddNavigationPropertyName(nameof(Store.Products)); Assert.Equal(expectedString, includeAggregator.IncludeString); }
public void ReturnsCorrectPath_GivenPropertyNamesAndClassNameInConstructor() { var expectedString = $"{nameof(Company)}.{nameof(Company.Stores)}.{nameof(Store.Products)}"; var includeAggregator = new IncludeAggregator(nameof(Company)); includeAggregator.AddNavigationPropertyName(nameof(Company.Stores)); includeAggregator.AddNavigationPropertyName(nameof(Store.Products)); includeAggregator.IncludeString.Should().Be(expectedString); }