File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed
src/NHibernate.Test/NHSpecificTest/NH1978 Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace NHibernate . Test . NHSpecificTest . NH1978
5
5
{
6
- [ TestFixture ]
7
- public class AliasTest : BugTestCase
8
- {
9
- [ Test ]
10
- public void ShouldReturnPlanFromEmployee ( )
11
- {
12
- using ( var s = OpenSession ( ) )
13
- using ( var trans = s . BeginTransaction ( ) )
14
- {
15
- var plan = new _401k { PlanName = "test" } ;
16
- s . Save ( plan ) ;
17
- s . Refresh ( plan ) ;
18
- var emp = new Employee { EmpName = "name" , PlanParent = plan } ;
19
- s . Save ( emp ) ;
6
+ [ TestFixture ]
7
+ public class AliasTest : BugTestCase
8
+ {
9
+ [ Test ]
10
+ public void ShouldReturnPlanFromEmployee ( )
11
+ {
12
+ using ( var s = OpenSession ( ) )
13
+ using ( var trans = s . BeginTransaction ( ) )
14
+ {
15
+ var plan = new _401k { PlanName = "test" } ;
16
+ s . Save ( plan ) ;
17
+ s . Flush ( ) ;
18
+ s . Refresh ( plan ) ;
19
+ var emp = new Employee { EmpName = "name" , PlanParent = plan } ;
20
+ s . Save ( emp ) ;
20
21
21
- trans . Rollback ( ) ;
22
- }
23
- }
24
- }
22
+ trans . Rollback ( ) ;
23
+ }
24
+ }
25
+ }
25
26
}
You can’t perform that action at this time.
0 commit comments