/// <summary> /// Add ICustomQueryExecutor to EntityFactoryService /// You may create your own ICustomQueryExecutor mock or use our CustomQueryExecutorStub class /// </summary> /// <param name="customQueryExecutor">ICustomQueryExecutor instance</param> /// <typeparam name="T">Query result type</typeparam> /// <returns>Returns this builder to enable method chaining</returns> public EntityFactoryServiceStubBuilder WithCustomQueryExecutor <T>(ICustomQueryExecutor <T> customQueryExecutor) where T : class { _stub.AddCustomQueryExecutor(customQueryExecutor); return(this); }
public void AddCustomQueryExecutor <T>(ICustomQueryExecutor <T> customQueryExecutor) where T : class { _customQueryExecutors[typeof(T)] = customQueryExecutor; }