Clover.NET coverage report - Coverage

Coverage timestamp: viernes, 12 de agosto de 2005 12:53:38 PM

File Stats: LOC: 75   Methods: 3
NCLOC: 27 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Session\AttributeSession.cs - 50,0 % 33,3 % 42,9 %
coverage coverage
1   #region Copyright
2   /*
3   ShowX. Maps business objects into presentation layer.
4   Copyright (C) 2005 Jesus Diaz.
5  
6   This library is free software; you can redistribute it and/or
7   modify it under the terms of the GNU Lesser General Public
8   License as published by the Free Software Foundation; either
9   version 2.1 of the License, or (at your option) any later version.
10  
11   This library is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14   Lesser General Public License for more details.
15  
16   You should have received a copy of the GNU Lesser General Public
17   License along with this library; if not, write to the Free Software
18   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  
20   For project details see: http://showx.sourceforge.net
21   */
22   #endregion
23  
24   using ShowX.Model;
25   using ShowX.Model.AttributeModel;
26  
27   namespace ShowX.Session
28   {
29   /// <summary>
30   /// Represent a session when mapping is done by using the attribute model.
31   /// </summary>
32   public class AttributeSession : ISession
33   {
34   /// <summary>
35   /// Method caller helper to invoke object handler methods.
36   /// </summary>
37   protected IObjectHandlerMethodCaller activeMethodCaller;
38  
39   /// <summary>
40   /// Mapping handler helper, to retrieve mapping for properies and classes.
41   /// </summary>
42   protected IMappingHandler activeMappingHandler;
43  
44   /// <summary>
45   /// Constructor. Initialize class objects to the appropiate attribute model
46   /// instances.
47   /// </summary>
48 4 public AttributeSession()
49   {
50 4 activeMethodCaller = new AttributeObjectHandlerMethodCaller();
51 4 activeMappingHandler = new AttributeMappingHandler();
52   }
53  
54   #region ISession methods
55  
56   /// <summary>
57   /// Retrieve the method caller helper used by this session.
58   /// </summary>
59 0 public IObjectHandlerMethodCaller MethodCaller
60   {
61   get { return this.activeMethodCaller; }
62   }
63  
64   /// <summary>
65   /// Retrieve the mapping handler helper used by this session.
66   /// </summary>
67 0 public IMappingHandler MappingHandler
68   {
69   get { return this.activeMappingHandler; }
70   }
71  
72   #endregion
73   }
74   }
75