feat: complete Oracle and MariaDB WebView data layer
This commit is contained in:
39
tests/MBN_STOCK_WEBVIEW.Infrastructure.Tests/TestOptions.cs
Normal file
39
tests/MBN_STOCK_WEBVIEW.Infrastructure.Tests/TestOptions.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using MBN_STOCK_WEBVIEW.Infrastructure;
|
||||
|
||||
namespace MBN_STOCK_WEBVIEW.Infrastructure.Tests;
|
||||
|
||||
internal static class TestOptions
|
||||
{
|
||||
public static DatabaseOptions CreateConfigured() => new()
|
||||
{
|
||||
Oracle = new OracleDatabaseOptions
|
||||
{
|
||||
Host = "oracle-unit-test.invalid",
|
||||
Port = 1521,
|
||||
Sid = "TESTSID",
|
||||
UserName = "oracle-unit-user",
|
||||
Password = "oracle-unit-password",
|
||||
ConnectTimeoutSeconds = 5,
|
||||
CommandTimeoutSeconds = 5,
|
||||
Pooling = false
|
||||
},
|
||||
MariaDb = new MariaDbDatabaseOptions
|
||||
{
|
||||
Host = "maria-unit-test.invalid",
|
||||
Port = 3306,
|
||||
Database = "test_database",
|
||||
UserName = "maria-unit-user",
|
||||
Password = "maria-unit-password",
|
||||
TlsMode = MariaDbTlsMode.Preferred,
|
||||
ConnectTimeoutSeconds = 5,
|
||||
CommandTimeoutSeconds = 5,
|
||||
Pooling = false
|
||||
},
|
||||
Resilience = new DatabaseResilienceOptions
|
||||
{
|
||||
OperationTimeoutSeconds = 5,
|
||||
MaximumRetryCount = 2,
|
||||
InitialRetryDelayMilliseconds = 0
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user