protected bool EnsureServerVersion(Version serverVersion) { if (FbTestsSetup.ServerVersionAtLeast(ServerVersion, serverVersion)) { return(true); } Assert.Inconclusive("Not supported on this version."); return(false); }
public virtual async Task SetUp() { await FbTestsSetup.SetUp(ServerType, Compression, WireCrypt); var cs = BuildConnectionString(ServerType, Compression, WireCrypt); if (_insertTestData) { await InsertTestData(cs); } _connection = new FbConnection(cs); await _connection.OpenAsync(); }
public virtual void SetUp() { FbTestsSetup.SetUp(FbServerType, Compression, WireCrypt); var cs = BuildConnectionString(FbServerType, Compression, WireCrypt); if (_insertTestData) { InsertTestData(cs); } _connection = new FbConnection(cs); _connection.Open(); }
public static FbConnectionStringBuilder BuildServicesConnectionStringBuilder(FbServerType serverType, bool compression, FbWireCrypt wireCrypt, bool includeDatabase) { var builder = new FbConnectionStringBuilder(); builder.UserID = FbTestsSetup.UserID; builder.Password = FbTestsSetup.Password; builder.DataSource = FbTestsSetup.DataSource; if (includeDatabase) { builder.Database = FbTestsSetup.Database(serverType, compression, wireCrypt); } builder.ServerType = serverType; return(builder); }
public static string BuildServicesConnectionString(FbServerType serverType, bool compression, bool includeDatabase) { FbConnectionStringBuilder cs = new FbConnectionStringBuilder(); cs.UserID = FbTestsSetup.UserID; cs.Password = FbTestsSetup.Password; cs.DataSource = FbTestsSetup.DataSource; if (includeDatabase) { cs.Database = FbTestsSetup.Database(serverType, compression); } cs.ServerType = serverType; return(cs.ToString()); }
public static FbConnectionStringBuilder BuildConnectionStringBuilder(FbServerType serverType, bool compression) { FbConnectionStringBuilder cs = new FbConnectionStringBuilder(); cs.UserID = FbTestsSetup.UserID; cs.Password = FbTestsSetup.Password; cs.DataSource = FbTestsSetup.DataSource; cs.Database = FbTestsSetup.Database(serverType, compression); cs.Port = FbTestsSetup.Port; cs.Charset = FbTestsSetup.Charset; cs.Pooling = FbTestsSetup.Pooling; cs.Compression = compression; cs.ServerType = serverType; return(cs); }
public static FbConnectionStringBuilder BuildConnectionStringBuilder(FbServerType serverType, bool compression) { var builder = new FbConnectionStringBuilder(); builder.UserID = FbTestsSetup.UserID; builder.Password = FbTestsSetup.Password; builder.DataSource = FbTestsSetup.DataSource; builder.Database = FbTestsSetup.Database(serverType, compression); builder.Port = FbTestsSetup.Port; builder.Charset = FbTestsSetup.Charset; builder.Pooling = FbTestsSetup.Pooling; builder.Compression = compression; builder.ServerType = serverType; return(builder); }
public virtual async Task SetUp() { await FbTestsSetup.SetUp(ServerType, Compression, WireCrypt); var cs = BuildConnectionString(ServerType, Compression, WireCrypt); if (_insertTestData) { await InsertTestData(cs); } Connection = new FbConnection(cs); await Connection.OpenAsync(); ServerVersion = FbServerProperties.ParseServerVersion(Connection.ServerVersion); }