public static IEnumerable <IDbProvider> Repositories() { const string dbName = "foo"; var mssqlConnectionProvider = new mssqlserver.DbConnectionProvider(null, null); var sqliteConnectionProvider = new sqlite.DbConnectionProvider(dbName); var mssqlDbProvider = new mssqlserver.DbProvider(mssqlConnectionProvider, dbName); var sqliteDbProvider = new sqlite.DbProvider(sqliteConnectionProvider); yield return(mssqlDbProvider); yield return(sqliteDbProvider); }
public static IEnumerable <IDbProvider> SqliteOnly() { var litecp = new sqlite.DbConnectionProvider($"{_testDbName}.sqlite3", SqliteSettings.Default); yield return(new SqliteDbProvider(litecp)); }