-
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.
Merge pull request #5 from Shuttle/v20
V20
- Loading branch information
Showing
51 changed files
with
504 additions
and
842 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
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
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,46 @@ | ||
using System.Data.Common; | ||
using System.Threading.Tasks; | ||
using Microsoft.Data.SqlClient; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using NUnit.Framework; | ||
using Shuttle.Core.Data; | ||
using Shuttle.Esb.Idempotence; | ||
|
||
namespace Shuttle.Esb.Sql.Idempotence.Tests; | ||
|
||
[TestFixture] | ||
public class IdempotenceFixture : Esb.Idempotence.Tests.IdempotenceFixture | ||
{ | ||
[SetUp] | ||
public void SetUp() | ||
{ | ||
DbProviderFactories.RegisterFactory("Microsoft.Data.SqlClient", SqlClientFactory.Instance); | ||
} | ||
|
||
[Test] | ||
[TestCase(false, false)] | ||
[TestCase(false, true)] | ||
[TestCase(true, false)] | ||
[TestCase(true, true)] | ||
public async Task Should_be_able_to_perform_full_processing_async(bool isTransactionalEndpoint, bool enqueueUniqueMessages) | ||
{ | ||
await TestIdempotenceProcessingAsync(GetServiceCollection(), isTransactionalEndpoint, enqueueUniqueMessages); | ||
} | ||
|
||
private static IServiceCollection GetServiceCollection() | ||
{ | ||
return new ServiceCollection() | ||
.AddDataAccess(builder => | ||
{ | ||
builder.AddConnectionString("Idempotence", "Microsoft.Data.SqlClient", | ||
"server=.;database=shuttle;user id=sa;password=Pass!000;TrustServerCertificate=true"); | ||
}) | ||
.AddSqlIdempotence(builder => | ||
{ | ||
builder.Options.Schema = "Idempotence"; | ||
builder.Options.ConnectionStringName = "Idempotence"; | ||
|
||
builder.UseSqlServer(); | ||
}); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
46 changes: 24 additions & 22 deletions
46
Shuttle.Esb.Sql.Idempotence.Tests/Shuttle.Esb.Sql.Idempotence.Tests.csproj
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0</TargetFrameworks> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net8.0</TargetFrameworks> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" /> | ||
<PackageReference Include="NUnit" Version="3.14.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" /> | ||
<PackageReference Include="Shuttle.Core.Data" Version="17.0.0" /> | ||
<PackageReference Include="Shuttle.Esb.Sql.Queue" Version="16.0.0" /> | ||
<PackageReference Include="Shuttle.Esb.Tests" Version="15.0.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> | ||
<PackageReference Include="NUnit" Version="4.2.2" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" /> | ||
<PackageReference Include="Shuttle.Core.Data" Version="20.0.0" /> | ||
<PackageReference Include="Shuttle.Esb.Idempotence.Tests" Version="20.0.0" /> | ||
<PackageReference Include="Shuttle.Esb.Sql.Queue" Version="20.0.0" /> | ||
<PackageReference Include="Shuttle.Esb.Tests" Version="20.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Shuttle.Esb.Sql.Idempotence\Shuttle.Esb.Sql.Idempotence.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Shuttle.Esb.Sql.Idempotence\Shuttle.Esb.Sql.Idempotence.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="appsettings.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> | ||
<ItemGroup> | ||
<None Update="appsettings.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
13 changes: 1 addition & 12 deletions
13
Shuttle.Esb.Sql.Idempotence/.package/AssemblyInfo.cs.template
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
22 changes: 12 additions & 10 deletions
22
Shuttle.Esb.Sql.Idempotence/.package/Shuttle.NuGetPackager.targets
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<PackageTasksPath Condition="'$(PackageTasksPath)' == ''">Shuttle.NuGetPackager.MSBuild.dll</PackageTasksPath> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<PackageTasksPath Condition="'$(PackageTasksPath)' == ''">Shuttle.NuGetPackager.MSBuild.dll</PackageTasksPath> | ||
</PropertyGroup> | ||
|
||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.Prompt" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.RegexFindAndReplace" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.NuGet.SetNuGetPackageVersions" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.Zip" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.NuGet.SemanticVersion" /> | ||
</Project> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.Prompt" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.RegexFindAndReplace" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" | ||
TaskName="Shuttle.NuGetPackager.MSBuild.NuGet.SetNuGetPackageVersions" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.Zip" /> | ||
<UsingTask AssemblyFile="$(PackageTasksPath)" TaskName="Shuttle.NuGetPackager.MSBuild.NuGet.SemanticVersion" /> | ||
</Project> |
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
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
16 changes: 0 additions & 16 deletions
16
Shuttle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceComplete.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
....Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceDeferredMessageSent.sql
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
....Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceGetDeferredMessages.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Shuttle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceHasCompleted.sql
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
Shuttle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceInitialize.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...tle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceIsMessageHandled.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
Shuttle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceIsProcessing.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
Shuttle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceMessageHandled.sql
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
Shuttle.Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceProcessing.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
....Esb.Sql.Idempotence/.scripts/Microsoft.Data.SqlClient/IdempotenceSendDeferredMessage.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.