Example #1
0
 public FakeCypherDbCommand(
     FakeCypherDbConnection connection,
     FakeCypherCommandExecutor commandExecutor)
 {
     DbConnection     = connection;
     _commandExecutor = commandExecutor;
 }
Example #2
0
 public FakeCypherDbTransaction(
     FakeCypherDbConnection connection,
     IsolationLevel isolationLevel = IsolationLevel.Unspecified)
 {
     DbConnection   = connection;
     IsolationLevel = isolationLevel;
 }
        /// <summary>
        /// Create database connection
        /// </summary>
        /// <returns></returns>
        protected override DbConnection CreateDbConnection()
        {
            var connection = new FakeCypherDbConnection(ConnectionString);

            _dbConnections.Add(connection);

            return(connection);
        }