You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.That(NHibernateUtil.IsInitialized(entitypRoot),Is.True,"Object must be initialized by default");
144
-
Assert.That(session.IsReadOnly(entitypRoot),Is.False,"Object must not be readonly by default");
145
-
Assert.That(NHibernateUtil.IsPropertyInitialized(entitypRoot,nameof(entitypRoot.LazyProp)),Is.False,"Lazy properties should not be initialized by default.");
152
+
153
+
Assert.That(NHibernateUtil.IsInitialized(entityRoot),Is.True,"Object must be initialized by default");
154
+
Assert.That(session.IsReadOnly(entityRoot),Is.False,"Object must not be readonly by default");
155
+
Assert.That(NHibernateUtil.IsPropertyInitialized(entityRoot,nameof(entityRoot.LazyProp)),Is.False,"Lazy properties should not be initialized by default.");
146
156
Assert.That(sqlLog.Appender.GetEvents().Length,Is.EqualTo(1),"Only one SQL select is expected");
147
157
}
148
158
}
@@ -152,13 +162,13 @@ public async Task RootEntityProjectionLazyAsync()
152
162
{
153
163
using(varsession=OpenSession())
154
164
{
155
-
EntityComplexentitypRoot=await(session
165
+
EntityComplexentityRoot=await(session
156
166
.QueryOver<EntityComplex>()
157
167
.Select(Projections.RootEntity().SetLazy(true))
158
168
.Take(1).SingleOrDefaultAsync());
159
-
160
-
161
-
Assert.That(NHibernateUtil.IsInitialized(entitypRoot),Is.False,"Object must be lazy loaded.");
169
+
170
+
171
+
Assert.That(NHibernateUtil.IsInitialized(entityRoot),Is.False,"Object must be lazy loaded.");
162
172
}
163
173
}
164
174
@@ -213,10 +223,10 @@ public async Task MultipleLazyEntityProjectionsAsync()
213
223
Assert.That(NHibernateUtil.IsInitialized(sameTypeChild),Is.False,"Object must be lazy loaded.");
214
224
Assert.That(NHibernateUtil.IsInitialized(child1),Is.False,"Object must be lazy loaded.");
215
225
Assert.That(NHibernateUtil.IsInitialized(child2),Is.False,"Object must be lazy loaded.");
216
-
226
+
217
227
//make sure objects are populated from different aliases for the same types
218
-
Assert.That(root.Id,Is.Not.EqualTo(sameTypeChild.Id),"Different objects are expected.");
219
-
Assert.That(child1.Id,Is.Not.EqualTo(child2.Id),"Different objects are expected.");
228
+
Assert.That(root.Id,Is.Not.EqualTo(sameTypeChild.Id),"Different objects are expected.");
229
+
Assert.That(child1.Id,Is.Not.EqualTo(child2.Id),"Different objects are expected.");
220
230
221
231
}
222
232
}
@@ -226,15 +236,15 @@ public async Task EntityProjectionWithLazyPropertiesFetchedAsync()
0 commit comments