public IDbCommand CreateCommand() { IDbCommand command; if (MockDBUtils.Connection != null) { command = MockDBUtils.Connection.CreateCommand(); command = new LoggingDbCommandWrapper(command); } else { command = new MockCommand(); MockDBUtils.AddCommand((MockCommand)command); } return(command); }
public static void AddCommand(MockCommand command) { COMMANDS.Add(command); }