public RelationalQueryAsserter( Func <TContext> contextCreator, ISetSource expectedData, Dictionary <Type, object> entitySorters, Dictionary <Type, object> entityAsserters, bool canExecuteQueryString) : base(contextCreator, expectedData, entitySorters, entityAsserters) { _canExecuteQueryString = canExecuteQueryString; }
public QueryAsserter( Func <TContext> contextCreator, ISetSource expectedData, Dictionary <Type, object> entitySorters, Dictionary <Type, object> entityAsserters) { _contextCreator = contextCreator; ExpectedData = expectedData; _entitySorters = entitySorters ?? new Dictionary <Type, object>(); _entityAsserters = entityAsserters ?? new Dictionary <Type, object>(); SetSourceCreator = ctx => new DefaultSetSource(ctx); _includeResultAsserter = new IncludeQueryResultAsserter(_entitySorters, _entityAsserters); }