using Ardalis.Specification.QueryExtensions.Include; using Microsoft.eShopWeb.UnitTests.ApplicationCore.Helpers.Query; using System.Collections.Generic; namespace Microsoft.eShopWeb.UnitTests.Builders { public class IncludeQueryBuilder { public IncludeQuery> WithCollectionAsPreviousProperty() { var pathMap = new Dictionary(); var query = new IncludeQuery>(pathMap); pathMap[query] = nameof(Person.Friends); return query; } public IncludeQuery WithObjectAsPreviousProperty() { var pathMap = new Dictionary(); var query = new IncludeQuery(pathMap); pathMap[query] = nameof(Book.Author); return query; } } }