public InMemoryRepositoryContext(string databaseName, bool ignoreTransactionWarning = false, bool ignoreSqlQueryWarning = false)
        {
            DatabaseName = string.IsNullOrEmpty(databaseName) ? DefaultDatabaseName : databaseName;
            Conventions  = RepositoryConventions.Default();

            _ignoreTransactionWarning = ignoreTransactionWarning;
            _ignoreSqlQueryWarning    = ignoreSqlQueryWarning;

            _db = InMemoryDatabasesCache.Instance.GetDatabase(databaseName);
        }
 public InMemoryDatabase GetDatabase(string name)
 {
     return(_dbs.GetOrAdd(Guard.NotEmpty(name, nameof(name)), InMemoryDatabase.Empty()));
 }