Skip to content

Commit c9469a7

Browse files
committed
Fixed test clean up
1 parent 7c38674 commit c9469a7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/NHibernate.Test/Async/Criteria/SelectModeTest/SelectModeTest.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ public async Task SelectModeChildFetchForMultipleCollectionsAsync()
141141
{
142142
EntityComplex root = null;
143143
var futureRoot = session
144-
.QueryOver(() => root)
145-
.Where(r => r.Id == _parentEntityComplexId)
146-
.FutureValue();
144+
.QueryOver(() => root)
145+
.Where(r => r.Id == _parentEntityComplexId)
146+
.FutureValue();
147147

148148
session
149149
.QueryOver(() => root)
@@ -289,7 +289,11 @@ protected override HbmMapping GetMappings()
289289
m.Column("Child2Id");
290290
m.ForeignKey("none");
291291
});
292-
rc.ManyToOne(ep => ep.SameTypeChild, m => m.Column("SameTypeChildId"));
292+
rc.ManyToOne(ep => ep.SameTypeChild, m =>
293+
{
294+
m.Column("SameTypeChildId");
295+
m.ForeignKey("none");
296+
});
293297
MapList(rc, ep => ep.ChildrenList);
294298
MapList(rc, ep => ep.ChildrenListEmpty);
295299
});

src/NHibernate.Test/Criteria/SelectModeTest/SelectModeTest.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,11 @@ protected override HbmMapping GetMappings()
318318
m.Column("Child2Id");
319319
m.ForeignKey("none");
320320
});
321-
rc.ManyToOne(ep => ep.SameTypeChild, m => m.Column("SameTypeChildId"));
321+
rc.ManyToOne(ep => ep.SameTypeChild, m =>
322+
{
323+
m.Column("SameTypeChildId");
324+
m.ForeignKey("none");
325+
});
322326
MapList(rc, ep => ep.ChildrenList);
323327
MapList(rc, ep => ep.ChildrenListEmpty);
324328
});

0 commit comments

Comments
 (0)