Clover.NET coverage report - Coverage

Coverage timestamp: Friday, May 20, 2005 9:17:00 PM

File Stats: LOC: 85   Methods: 3
NCLOC: 36 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
TypeHandlers\ParameterSetterImpl.cs - 66.7 % 66.7 % 66.7 %
coverage coverage
1  
2   #region Apache Notice
3   /*****************************************************************************
4   * $Header: $
5   * $Revision: $
6   * $Date: $
7   *
8   * iBATIS.NET Data Mapper
9   * Copyright (C) 2004 - Gilles Bayon
10   *
11   *
12   * Licensed under the Apache License, Version 2.0 (the "License");
13   * you may not use this file except in compliance with the License.
14   * You may obtain a copy of the License at
15   *
16   * http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing, software
19   * distributed under the License is distributed on an "AS IS" BASIS,
20   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   * See the License for the specific language governing permissions and
22   * limitations under the License.
23   *
24   ********************************************************************************/
25   #endregion
26  
27   #region Using
28  
29   using System.Data;
30  
31   #endregion
32  
33   namespace IBatisNet.DataMapper.TypeHandlers
34   {
35   /// <summary>
36   /// A ParameterSetter implementation
37   /// </summary>
38   public class ParameterSetterImpl : IParameterSetter
39   {
40   #region Fields
41  
42   private IDataParameter _dataParameter = null;
43  
44   #endregion
45  
46   #region Constructor
47  
48   /// <summary>
49   /// Default Constructor
50   /// </summary>
51   /// <param name="dataParameter"></param>
52 35 public ParameterSetterImpl(IDataParameter dataParameter)
53   {
54 35 _dataParameter = dataParameter;
55   }
56   #endregion
57  
58   #region IParameterSetter members
59  
60   /// <summary>
61   /// Returns the underlying DataParameter
62   /// </summary>
63 0 public IDataParameter DataParameter
64   {
65   get
66   {
67   return _dataParameter;
68   }
69   }
70  
71   /// <summary>
72   /// Set the parameter value
73   /// </summary>
74   public object Value
75   {
76 35 set
77   {
78 35 _dataParameter.Value = value;
79   }
80   }
81  
82   #endregion
83   }
84   }
85