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
// null! indicates that the member is initialized in other code
11
+
privateDbConnection?connection=null!;
12
+
13
+
publicDataHelperDataHelper{get;set;}=null!;
14
+
15
+
publicDataHelperDataHelper2{get;set;}=null!;
16
+
17
+
[TestInitialize]
18
+
publicvoidInitialize()
19
+
{
20
+
DataContextcontext=GetInMemoryDatabaseContext();
21
+
DataContextcontext2=GetInMemoryDatabaseContext();
22
+
Assert.AreNotEqual(context.GetHashCode(),context2.GetHashCode(),"Contexts instances should be different.");
23
+
Assert.AreEqual(context.Database.GetDbConnection(),context2.Database.GetDbConnection(),"Contexts instances should have the same database connection.");
0 commit comments