Skip to content

Commit

Permalink
bou-1 - added the Containers folder with an ISqlContainer base interf…
Browse files Browse the repository at this point in the history
…ace and ConnectStringProvider
  • Loading branch information
Greg Cook committed Feb 24, 2025
1 parent 777f88c commit 90d4bf5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<ItemGroup>
<PackageReference Include="Bounteous.Core" Version="0.0.3" />
<PackageReference Include="Bounteous.Data" Version="0.0.4" />
<PackageReference Include="Moq" Version="4.20.72" />
</ItemGroup>

Expand Down
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 src/Bounteous.xUnit.Accelerator/Containers/ISqlContainer.cs
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; }
}

0 comments on commit 90d4bf5

Please sign in to comment.