ConnectionStringProvider Class
Namespace: PTS.Modules.Tests.Infrastructure
Assembly: Modules.Tests.dll
Static class providing information about connection string received from environment variables.
Syntax
public static class ConnectionStringProvider
Inheritance
System.Object
ConnectionStringProvider
Properties
ConnectionString
Gets the valid Postgres connection string format.
Declaration
public static string ConnectionString { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Database
Gets the value of POSTGRES_DB environment variable.
Declaration
public static string Database { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Host
Gets the value of POSTGRES_HOST environment variable.
Declaration
public static string Host { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Password
Gets the value of POSTGRES_PASSWORD environment variable.
Declaration
public static string Password { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
User
Gets the value of POSTGRES_USER environment variable.
Declaration
public static string User { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()