forked from ddrilling/AsbCloudServer
15 lines
434 B
C#
15 lines
434 B
C#
|
namespace AsbCloudWebApi.IntegrationTests;
|
||
|
|
||
|
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";
|
||
|
}
|