-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bou-1 - added the Containers folder with an ISqlContainer base interf…
…ace and ConnectStringProvider
- Loading branch information
Greg Cook
committed
Feb 24, 2025
1 parent
777f88c
commit 90d4bf5
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Bounteous.xUnit.Accelerator/Containers/ConnectionStringProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Bounteous.Data; | ||
|
||
namespace Bounteous.xUnit.Accelerator.Containers; | ||
|
||
public class ConnectionStringProvider : IConnectionStringProvider | ||
{ | ||
private static string connectionString = string.Empty; | ||
|
||
public static void Configure(string value) => connectionString = value; | ||
public string ConnectionString => connectionString; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Bounteous.xUnit.Accelerator/Containers/ISqlContainer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace Bounteous.xUnit.Accelerator.Containers; | ||
|
||
public interface ISqlContainer | ||
{ | ||
Task<ISqlContainer> WithDatabase(string schema); | ||
Task<ISqlContainer> RunSql(string sql); | ||
string ConnectionString { get; } | ||
} |