File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Src/NHibernate.Envers.Tests/NetSpecific/Integration/ManyToOne/LazyProperty Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
using System . Linq ;
2
2
using NUnit . Framework ;
3
+ using SharpTestsEx ;
3
4
4
5
namespace NHibernate . Envers . Tests . NetSpecific . Integration . ManyToOne . LazyProperty
5
6
{
@@ -25,16 +26,20 @@ protected override void Initialize()
25
26
[ Test ]
26
27
public void SavePersonProxyForFieldInterceptor ( )
27
28
{
29
+ long carId ;
28
30
using ( var tx = Session . BeginTransaction ( ) )
29
31
{
30
32
var pers = Session . Query < Person > ( ) . Single ( x => x . Id == id_pers1 ) ;
31
33
var car = new Car
32
34
{
33
35
Owner = pers
34
36
} ;
35
- id_pers1 = ( long ) Session . Save ( car ) ;
37
+ carId = ( long ) Session . Save ( car ) ;
36
38
tx . Commit ( ) ;
37
39
}
40
+
41
+ AuditReader ( ) . Find < Car > ( carId , 2 ) . Owner . Name
42
+ . Should ( ) . Be . EqualTo ( "Hernan" ) ;
38
43
}
39
44
}
40
45
}
You can’t perform that action at this time.
0 commit comments