Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Data
In directory usw-pr-cvs1:/tmp/cvs-serv27329/DotNetMock/Data
Modified Files:
MockDataParameter.cs
Log Message:
Added XML comments to most files
Added NDoc documentation task to Master.Build file
Index: MockDataParameter.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Data/MockDataParameter.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MockDataParameter.cs 11 Oct 2002 00:24:38 -0000 1.2
--- MockDataParameter.cs 11 Oct 2002 03:07:59 -0000 1.3
***************
*** 54,58 ****
}
/// <summary>
! /// Sets expected name
/// </summary>
/// <param name="name">Parameter name to expect</param>
--- 54,58 ----
}
/// <summary>
! /// Sets expected parameter name
/// </summary>
/// <param name="name">Parameter name to expect</param>
***************
*** 61,76 ****
--- 61,92 ----
_parameterName.Expected = name;
}
+ /// <summary>
+ /// Sets expected parameter value
+ /// </summary>
+ /// <param name="value">Value to expect</param>
public void SetExpectedValue(string value)
{
_parameterValue.Expected = value;
}
+ /// <summary>
+ /// Sets IsNullable or not
+ /// </summary>
+ /// <param name="nullable">True/False</param>
public void SetExpectedNullable(bool nullable)
{
_nullable.Expected = nullable;
}
+ /// <summary>
+ /// Sets expected parameter type
+ /// </summary>
+ /// <param name="expectedType">Type to expect</param>
public void SetExpectedType(DbType expectedType)
{
_parameterType.Expected = expectedType;
}
+ /// <summary>
+ /// Sets expected source column
+ /// </summary>
+ /// <param name="column">Expected source column</param>
public void SetExpectedSourceColumn(string column)
{
***************
*** 80,85 ****
#region Implementation of IDataParameter
!
// TODO: Implement complete directions: Input, Output, InputOutput, and ReturnValue
public System.Data.ParameterDirection Direction
{
--- 96,104 ----
#region Implementation of IDataParameter
!
// TODO: Implement complete directions: Input, Output, InputOutput, and ReturnValue
+ /// <summary>
+ /// Parameter Direction
+ /// </summary>
public System.Data.ParameterDirection Direction
{
***************
*** 92,96 ****
}
}
!
public System.Data.DbType DbType
{
--- 111,117 ----
}
}
! /// <summary>
! /// Paramter Type
! /// </summary>
public System.Data.DbType DbType
{
***************
*** 103,107 ****
}
}
!
public object Value
{
--- 124,130 ----
}
}
! /// <summary>
! /// Parameter Value
! /// </summary>
public object Value
{
***************
*** 116,120 ****
}
}
!
public bool IsNullable
{
--- 139,145 ----
}
}
! /// <summary>
! /// Is Nullable
! /// </summary>
public bool IsNullable
{
***************
*** 128,132 ****
}
}
! /// TODO: Implement different DataRowVersion information: Current, Proposed, Default, and Original
public System.Data.DataRowVersion SourceVersion
{
--- 153,160 ----
}
}
! // TODO: Implement different DataRowVersion information: Current, Proposed, Default, and Original
! /// <summary>
! /// Parameter Source Version to use
! /// </summary>
public System.Data.DataRowVersion SourceVersion
{
***************
*** 139,143 ****
}
}
!
public string ParameterName
{
--- 167,173 ----
}
}
! /// <summary>
! /// Paramter Name
! /// </summary>
public string ParameterName
{
***************
*** 150,154 ****
}
}
!
public string SourceColumn
{
--- 180,186 ----
}
}
! /// <summary>
! /// Source Column for the parameter
! /// </summary>
public string SourceColumn
{
***************
*** 162,166 ****
}
#endregion
!
private DbType inferType(Object value)
{
--- 194,202 ----
}
#endregion
! /// <summary>
! /// Infers corresponding DbType from the given value
! /// </summary>
! /// <param name="value">Value to use</param>
! /// <returns>Inferred DbType from given value</returns>
private DbType inferType(Object value)
{
|