21 lines
571 B
C#
21 lines
571 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Persistence.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";
|
|||
|
}
|