root/UnityWeb/UnityWeb/Repository/Test/NHibernateRepositoryTest/NHibernateSessionManagerTest.cs
| 49 | 56 | ||
|---|---|---|---|
1 | #region Using Statements | 1 | #region Using Statements |
2 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | 3 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
4 | using NHibernate; | ||
5 | using Repository.NHibernateDataAccess; | 4 | using Repository.NHibernateDataAccess; |
6 | 5 | ||
7 | #endregion | 6 | #endregion |
... | ... | ||
17 | public class NHibernateSessionManagerTest | 16 | public class NHibernateSessionManagerTest |
18 | { | 17 | { |
19 | private static readonly NHibernateSessionManager target = new NHibernateSessionManager(); | 18 | private static readonly NHibernateSessionManager target = new NHibernateSessionManager(); |
20 | private TestContext testContextInstance; | ||
21 | 19 | ||
22 | /// <summary> | 20 | /// <summary> |
23 | ///Gets or sets the test context which provides | 21 | ///Gets or sets the test context which provides |
24 | ///information about and functionality for the current test run. | 22 | ///information about and functionality for the current test run. |
25 | ///</summary> | 23 | ///</summary> |
26 | public TestContext TestContext | 24 | public TestContext TestContext { get; set; } |
27 | { | ||
28 | get { return testContextInstance; } | ||
29 | set { testContextInstance = value; } | ||
30 | } | ||
31 | 25 | ||
32 | #region Additional test attributes | 26 | #region Additional test attributes |
33 | 27 | ||
... | ... | ||
67 | [TestMethod] | 61 | [TestMethod] |
68 | public void NHibernateSessionManagerGetSessionTest() | 62 | public void NHibernateSessionManagerGetSessionTest() |
69 | { | 63 | { |
70 | ISession actual = target.GetSession(); | 64 | var actual = target.GetSession(); |
71 | Assert.IsNotNull(actual); | 65 | Assert.IsNotNull(actual); |
72 | } | 66 | } |
73 | 67 |
Download diff