Skip to content

Commit

Permalink
Merge pull request #117 from apache/Feature/TabsToSpaces
Browse files Browse the repository at this point in the history
tabs to spaces
  • Loading branch information
fluffynuts authored Mar 8, 2024
2 parents a1c3ce5 + 788cf6e commit 3877e0b
Show file tree
Hide file tree
Showing 267 changed files with 59,764 additions and 59,709 deletions.
232 changes: 116 additions & 116 deletions src/log4net.Tests/Appender/AdoNet/Log4NetCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,121 +24,121 @@

namespace log4net.Tests.Appender.AdoNet
{
public class Log4NetCommand : IDbCommand
{
#region AdoNetAppender

private static Log4NetCommand mostRecentInstance;

private IDbTransaction transaction;
private string commandText;
private readonly IDataParameterCollection parameters;
private CommandType commandType;
private int executeNonQueryCount;

public Log4NetCommand()
{
mostRecentInstance = this;

parameters = new Log4NetParameterCollection();
}

public void Dispose()
{
// empty
}

public IDbTransaction Transaction
{
get { return transaction; }
set { transaction = value; }
}

public int ExecuteNonQuery()
{
executeNonQueryCount++;
return 0;
}

public int ExecuteNonQueryCount
{
get { return executeNonQueryCount; }
}

public IDbDataParameter CreateParameter()
{
return new Log4NetParameter();
}

public string CommandText
{
get { return commandText; }
set { commandText = value; }
}

public CommandType CommandType
{
get { return commandType; }
set { commandType = value; }
}

public void Prepare()
{
// empty
}

public IDataParameterCollection Parameters
{
get { return parameters; }
}

public static Log4NetCommand MostRecentInstance
{
get { return mostRecentInstance; }
}

#endregion

#region Not Implemented

public void Cancel()
{
throw new NotImplementedException();
}

public IDataReader ExecuteReader()
{
throw new NotImplementedException();
}

public IDataReader ExecuteReader(CommandBehavior behavior)
{
throw new NotImplementedException();
}

public object ExecuteScalar()
{
throw new NotImplementedException();
}

public IDbConnection Connection
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public int CommandTimeout
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public UpdateRowSource UpdatedRowSource
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

#endregion
public class Log4NetCommand : IDbCommand
{
#region AdoNetAppender

private static Log4NetCommand mostRecentInstance;

private IDbTransaction transaction;
private string commandText;
private readonly IDataParameterCollection parameters;
private CommandType commandType;
private int executeNonQueryCount;

public Log4NetCommand()
{
mostRecentInstance = this;

parameters = new Log4NetParameterCollection();
}

public void Dispose()
{
// empty
}

public IDbTransaction Transaction
{
get { return transaction; }
set { transaction = value; }
}

public int ExecuteNonQuery()
{
executeNonQueryCount++;
return 0;
}

public int ExecuteNonQueryCount
{
get { return executeNonQueryCount; }
}

public IDbDataParameter CreateParameter()
{
return new Log4NetParameter();
}

public string CommandText
{
get { return commandText; }
set { commandText = value; }
}

public CommandType CommandType
{
get { return commandType; }
set { commandType = value; }
}

public void Prepare()
{
// empty
}

public IDataParameterCollection Parameters
{
get { return parameters; }
}

public static Log4NetCommand MostRecentInstance
{
get { return mostRecentInstance; }
}

#endregion

#region Not Implemented

public void Cancel()
{
throw new NotImplementedException();
}

public IDataReader ExecuteReader()
{
throw new NotImplementedException();
}

public IDataReader ExecuteReader(CommandBehavior behavior)
{
throw new NotImplementedException();
}

public object ExecuteScalar()
{
throw new NotImplementedException();
}

public IDbConnection Connection
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public int CommandTimeout
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public UpdateRowSource UpdatedRowSource
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

#endregion
}
}
Loading

0 comments on commit 3877e0b

Please sign in to comment.