using JdeScoping.ConfigManager.Core.Models;
namespace JdeScoping.ConfigManager.Core.Services;
///
/// Service for testing database connections.
///
public interface IConnectionTestService
{
///
/// Tests a database connection asynchronously.
///
/// The connection string to test.
/// The database provider type.
/// Cancellation token for the operation.
/// A ConnectionTestResult indicating success or failure of the test.
Task TestConnectionAsync(string connectionString, ConnectionProvider provider, CancellationToken cancellationToken = default);
}