File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/NHibernate.Test/Async/NHSpecificTest/GH3325 Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,8 @@ namespace NHibernate.Test.NHSpecificTest.GH3325
1717 [ TestFixture ]
1818 public class FixtureAsync : BugTestCase
1919 {
20- protected override void OnSetUp ( )
21- {
22- Sfi . Statistics . IsStatisticsEnabled = true ;
23- }
24-
2520 protected override void OnTearDown ( )
2621 {
27- Sfi . Statistics . IsStatisticsEnabled = false ;
2822 using ( var session = OpenSession ( ) )
2923 using ( var transaction = session . BeginTransaction ( ) )
3024 {
@@ -45,16 +39,16 @@ public async Task CanAddChildAfterFlushAsync()
4539 {
4640 var parent = new Entity { Name = "Parent" } ;
4741 var child = new ChildEntity { Name = "Child" } ;
48- parent . Children . Add ( child ) ;
42+ var parentChildren = parent . Children ;
43+ parentChildren . Add ( child ) ;
4944 await ( session . SaveAsync ( parent ) ) ;
50- parent . Children . Remove ( child ) ;
45+ parentChildren . Remove ( child ) ;
5146 parentId = parent . Id ;
5247 childId = child . Id ;
5348 await ( t . CommitAsync ( ) ) ;
5449 }
5550
5651 using ( var session = OpenSession ( ) )
57- using ( var _ = session . BeginTransaction ( ) )
5852 {
5953 var parent = await ( session . GetAsync < Entity > ( parentId ) ) ;
6054 Assert . That ( parent , Is . Not . Null ) ;
You can’t perform that action at this time.
0 commit comments