File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using System . Collections . Generic ;
2+ using System . Data ;
3+ using DbUp . Engine . Transactions ;
4+
5+ namespace DbUp . Postgresql . Tests ;
6+
7+ /// <summary>
8+ /// Test implementation of DatabaseConnectionManager for unit testing.
9+ /// </summary>
10+ public class TestConnectionManager : DatabaseConnectionManager
11+ {
12+ public TestConnectionManager ( IDbConnection connection )
13+ : base ( new DelegateConnectionFactory ( _ => connection ) )
14+ {
15+ }
16+
17+ public override IEnumerable < string > SplitScriptIntoCommands ( string scriptContents )
18+ {
19+ yield return scriptContents ;
20+ }
21+ }
Original file line number Diff line number Diff line change 1010
1111 <ItemGroup >
1212 <ProjectReference Include =" ..\dbup-postgresql\dbup-postgresql.csproj" />
13- <PackageReference Include =" DbUp.Tests.Common" Version =" 6 .0.15 " />
13+ <PackageReference Include =" DbUp.Tests.Common" Version =" 5 .0.37 " />
1414 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 18.0.0" />
1515 <PackageReference Include =" xunit" Version =" 2.9.3" />
1616 <PackageReference Include =" xunit.runner.visualstudio" Version =" 3.1.5" >
Original file line number Diff line number Diff line change 3232 </ItemGroup >
3333
3434 <ItemGroup Condition =" '$(TargetFramework)' == 'net8.0'" >
35- <PackageReference Include =" Npgsql" Version =" 9 .0.4 " />
35+ <PackageReference Include =" Npgsql" Version =" 10 .0.1 " />
3636 </ItemGroup >
3737
3838 <ItemGroup >
You can’t perform that action at this time.
0 commit comments