Skip to content

Commit

Permalink
Update Particular.Approvals
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Mar 11, 2024
1 parent 587d118 commit 9757527
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using Mono.Cecil;
using NServiceBus.Persistence.Sql.ScriptBuilder;
using NUnit.Framework;
Expand Down Expand Up @@ -144,7 +145,7 @@ public void TestReverseHeaderMapping()
TestSagaDefinition<ReverseHeaderMappingSaga>();
}

void TestSagaDefinition<TSagaType>(ModuleDefinition moduleToUse = null)
void TestSagaDefinition<TSagaType>(ModuleDefinition moduleToUse = null, [CallerMemberName] string callerMemberName = null)
{
moduleToUse ??= module;

Expand All @@ -168,7 +169,7 @@ void TestSagaDefinition<TSagaType>(ModuleDefinition moduleToUse = null)
results.Exception = x.Message;
}

Approver.Verify(results);
Approver.Verify(results, callerMemberName: callerMemberName);
}

class SagaInspectionResults
Expand Down
2 changes: 1 addition & 1 deletion src/ScriptBuilder.Tests/ScriptBuilder.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="NServiceBus" Version="9.0.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Particular.Approvals" Version="0.6.0" />
<PackageReference Include="Particular.Approvals" Version="1.0.0" />
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/ScriptBuilderTask.Tests/ScriptBuilderTask.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Particular.Approvals" Version="0.6.0" />
<PackageReference Include="Particular.Approvals" Version="1.0.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/SqlPersistence.Tests/SqlPersistence.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="NServiceBus" Version="9.0.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Particular.Approvals" Version="0.6.0" />
<PackageReference Include="Particular.Approvals" Version="1.0.0" />
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Data.Common;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using NServiceBus.Persistence.Sql.ScriptBuilder;
using NServiceBus.Unicast.Subscriptions;
Expand Down Expand Up @@ -137,7 +138,7 @@ public void Should_be_cached()
VerifyCache(persister.Cache);
}

static void VerifyCache(ConcurrentDictionary<string, SubscriptionPersister.CacheItem> cache)
static void VerifyCache(ConcurrentDictionary<string, SubscriptionPersister.CacheItem> cache, [CallerMemberName] string callerMemberName = null)
{
var items = cache
.OrderBy(_ => _.Key)
Expand All @@ -148,7 +149,7 @@ static void VerifyCache(ConcurrentDictionary<string, SubscriptionPersister.Cache
.OrderBy(_ => _.Endpoint)
.ThenBy(_ => _.TransportAddress);
});
Approver.Verify(items);
Approver.Verify(items, callerMemberName: callerMemberName);
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="NServiceBus.TransactionalSession" Version="3.0.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Particular.Approvals" Version="0.6.0" />
<PackageReference Include="Particular.Approvals" Version="1.0.0" />
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
</ItemGroup>

Expand Down

0 comments on commit 9757527

Please sign in to comment.