コード例 #1
0
        private void RegisterSharedDb(ITempDB db)
        {
            var sharedDbName = GetSharedDbNameForThisFixture();

            if (sharedDbName == null)
            {
                return;
            }
            SharedDatabaseLocator.Register(sharedDbName, db);
        }
コード例 #2
0
        private ITempDB FindSharedTempDb()
        {
            var sharedDbName = GetSharedDbNameForThisFixture();

            if (sharedDbName == null)
            {
                return(null);
            }
            ValidateCanShareTempDb();
            return(SharedDatabaseLocator.Find(sharedDbName));
        }