File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Src/NHibernate.Envers.Tests Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
- using System . IO ;
4
3
using System . Reflection ;
5
4
using NHibernate . Cfg ;
6
5
using NHibernate . Dialect ;
@@ -51,7 +50,7 @@ public void BaseSetup()
51
50
Cfg = new Cfg . Configuration ( ) ;
52
51
Cfg . SetEnversProperty ( ConfigurationKey . AuditStrategy , StrategyType ) ;
53
52
AddToConfiguration ( Cfg ) ;
54
- Cfg . Configure ( configurationFile ( ) ) ;
53
+ Cfg . Configure ( ) ;
55
54
addMappings ( ) ;
56
55
Cfg . IntegrateWithEnvers ( new AuditEventListener ( ) , EnversConfiguration ( ) ) ;
57
56
_sessionFactory = Cfg . BuildSessionFactory ( ) ;
@@ -137,14 +136,5 @@ private void closeSessionAndAuditReader()
137
136
Session ? . Dispose ( ) ;
138
137
_auditReader = null ;
139
138
}
140
-
141
- private static string configurationFile ( )
142
- {
143
- var baseDir = AppDomain . CurrentDomain . BaseDirectory ;
144
- var relativeSearchPath = AppDomain . CurrentDomain . RelativeSearchPath ;
145
- var folder = relativeSearchPath == null ? baseDir : Path . Combine ( baseDir , relativeSearchPath ) ;
146
-
147
- return Path . Combine ( folder , "hibernate.cfg.xml" ) ;
148
- }
149
139
}
150
140
}
You can’t perform that action at this time.
0 commit comments