2024-03-11 15:16:07 +05:00
|
|
|
namespace AsbCloudWebApi.IntegrationTests;
|
|
|
|
|
|
|
|
public class DbConnection
|
|
|
|
{
|
2024-07-04 11:02:45 +05:00
|
|
|
public string Host { get; set; } = null!;
|
2024-03-11 15:16:07 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
public int Port { get; set; }
|
2024-03-11 15:16:07 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
public string Username { get; set; } = null!;
|
2024-03-11 15:16:07 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
public string Password { get; set; } = null!;
|
2024-03-11 15:16:07 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
public string GetConnectionString() =>
|
|
|
|
$"Host={Host};Database={Guid.NewGuid()};Port={Port};Username={Username};Password={Password};Persist Security Info=True;Include Error Detail=True";
|
2024-03-11 15:16:07 +05:00
|
|
|
}
|