diff --git a/src/NHibernate.Test/Async/NHSpecificTest/GH3403OneToOne/Fixture.cs b/src/NHibernate.Test/Async/NHSpecificTest/GH3403OneToOne/Fixture.cs index 75828a7fc77..85c119e905c 100644 --- a/src/NHibernate.Test/Async/NHSpecificTest/GH3403OneToOne/Fixture.cs +++ b/src/NHibernate.Test/Async/NHSpecificTest/GH3403OneToOne/Fixture.cs @@ -52,7 +52,7 @@ public async Task OrphanDeleteForDetachedOneToOneAsync() using (var transaction = session.BeginTransaction()) { var entity = await (session.GetAsync(_id)); - childId = entity.Child.Id + childId = entity.Child.Id; await (session.EvictAsync(entity.Child)); entity.Child = null; @@ -66,7 +66,7 @@ public async Task OrphanDeleteForDetachedOneToOneAsync() Assert.That(entity, Is.Not.Null); Assert.That(entity.Child, Is.Null, "Unexpected child on parent"); - var child = await (session.GetAsync(_id)); + var child = await (session.GetAsync(childId)); Assert.That(child , Is.Null, "Child is still in database"); } }