2024-12-09 13:19:55 +05:00
|
|
|
|
namespace Persistence.IntegrationTests;
|
2024-11-14 15:17:43 +05:00
|
|
|
|
public class DbConnection
|
|
|
|
|
{
|
|
|
|
|
public string Host { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Username { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public string Password { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public string GetConnectionString() =>
|
|
|
|
|
$"Host={Host};Database={Guid.NewGuid()};Port={Port};Username={Username};Password={Password};Persist Security Info=True;Include Error Detail=True";
|
|
|
|
|
}
|