public FakeDbCommand CreateCommand(FakeDbConnection connection, List <TestTable> testTables, FakeDbDelays delays) { return(new FakeDbCommand(connection: connection, testTables: testTables, delays) { AsyncMode = connection.AsyncMode }); }
public FakeDbConnection(AsyncMode asyncMode, FakeDbDelays delays = null) { this.AsyncMode = asyncMode; this.FakeDbDelays = delays ?? FakeDb.FakeDbDelays.DefaultDelaysNone; }
public FakeDbCommand(FakeDbConnection connection, List <TestTable> testTables, FakeDbDelays delays) { base.Connection = connection ?? throw new ArgumentNullException(nameof(connection)); this.TestTables = testTables; this.Delays = delays ?? throw new ArgumentNullException(nameof(delays)); this.CreateReader = this.CreateFakeDbDataReader; }