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
        }
    };
}
