Skip to content

Commit

Permalink
Prepare RTM (#603)
Browse files Browse the repository at this point in the history
* Prepare RTM

* Don't use $(SolutionDir) in key path

* Clean up warnings

* Update license notices

---------

Co-authored-by: Brandon Ording <[email protected]>
  • Loading branch information
andreasohlund and bording authored Feb 8, 2024
1 parent c123fa2 commit c4c18b8
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 226 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
dotnet-quality: 'preview'
- name: Build
run: dotnet build src --configuration Release
- name: Upload packages
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
dotnet-quality: 'preview'
- name: Build
run: dotnet build src --configuration Release
- name: Sign NuGet packages
Expand Down
203 changes: 0 additions & 203 deletions NOTICE.txt

This file was deleted.

15 changes: 15 additions & 0 deletions THIRD-PARTY-NOTICES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
License notice for net-object-deep-copy
---------------------------------------

https://github.com/Burtsev-Alexey/net-object-deep-copy/blob/master/README

Source code is released under the MIT license.

The MIT License (MIT)
Copyright (c) 2014 Burtsev Alexey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="NServiceBus" Version="9.0.0-alpha.1" />
<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="1.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/BasicSaga.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task TestBasicSaga()
Assert.That(shipped.OrderId == "abc");
}

public class ShippingPolicy : NServiceBus.Saga<ShippingPolicyData>,
public class ShippingPolicy : Saga<ShippingPolicyData>,
IAmStartedByMessages<OrderPlaced>,
IAmStartedByMessages<OrderBilled>,
IHandleTimeouts<ShippingDelay>
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/DelayedMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task TestDealyedMessages()
Assert.That(delayedCmdResult.SagaDataSnapshot.DelayedCommandReceived, Is.True);
}

public class DelaySaga : NServiceBus.Saga<Data>,
public class DelaySaga : Saga<Data>,
IAmStartedByMessages<Start>,
IHandleMessages<DelayedCmd>,
IHandleTimeouts<RegularTimeout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task ExternalHandlerShouldSupplyReplyMessage()
Assert.That(doneEvt.CorrId, Is.EqualTo("abc"));
}

public class MySaga : NServiceBus.Saga<MyData>,
public class MySaga : Saga<MyData>,
IAmStartedByMessages<StartMsg>,
IHandleMessages<Step1Response>
{
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/HeaderMappings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task TestHeaderMappings()
Assert.That(result.SagaDataSnapshot.HeaderMessageReceived, Is.True);
}

public class HeaderSaga : NServiceBus.Saga<HeaderSagaData>,
public class HeaderSaga : Saga<HeaderSagaData>,
IAmStartedByMessages<HeaderMessage>
{
protected override void ConfigureHowToFindSaga(SagaPropertyMapper<HeaderSagaData> mapper)
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/ReplyMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task TestReplyMessageApi()
Assert.That(endResult.SagaDataSnapshot.ReplyReceived, Is.True);
}

public class MySaga : NServiceBus.Saga<MyData>,
public class MySaga : Saga<MyData>,
IAmStartedByMessages<StartMsg>,
IHandleMessages<Step1Reply>
{
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/ReplyToOriginator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task OriginatorShouldBeSetByDefault()
Assert.AreEqual(replyAddress, reply.Message<ReplyMessage>().OriginatorAddress);
}

class ReplyingSaga : NServiceBus.Saga<ReplyingSagaData>, IAmStartedByMessages<StartSagaMessage>, IHandleMessages<SendReplyMessage>
class ReplyingSaga : Saga<ReplyingSagaData>, IAmStartedByMessages<StartSagaMessage>, IHandleMessages<SendReplyMessage>
{
protected override void ConfigureHowToFindSaga(SagaPropertyMapper<ReplyingSagaData> mapper) => mapper
.ConfigureMapping<StartSagaMessage>(m => m.CorrelationProperty)
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/SagaCompletion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public async Task MarkStartedSagaAsComplete()
Assert.IsTrue(result.Completed);
}

class TestSaga : NServiceBus.Saga<TestSagaData>, IAmStartedByMessages<StartSagaMessage>
class TestSaga : Saga<TestSagaData>, IAmStartedByMessages<StartSagaMessage>
{
protected override void ConfigureHowToFindSaga(SagaPropertyMapper<TestSagaData> mapper) => mapper
.MapSaga(d => d.CorrelationId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task TimeoutShouldBeSwallowedAfterSagaCompletion()
Assert.That(result[0].Completed, Is.True);
}

public class MyCustomSaga : NServiceBus.Saga<MyCustomSagaData>,
public class MyCustomSaga : Saga<MyCustomSagaData>,
IAmStartedByMessages<MsgHappensTwice>,
IHandleTimeouts<TimeoutHappensTwice>
{
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/SendToSelf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task ShouldEnqueueMessageForProcessing()
Assert.That(doneEvt.CorrId, Is.EqualTo("abc"));
}

public class MySaga : NServiceBus.Saga<MyData>,
public class MySaga : Saga<MyData>,
IAmStartedByMessages<StartMsg>,
IHandleMessages<SendToSelfCmd>
{
Expand Down
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing.Tests/Sagas/TwoSagas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task TestWithDifferentCorrelationIds()
Assert.That(shipped.OrderId == "abc");
}

public class ShippingPolicy : NServiceBus.Saga<ShippingPolicyData>,
public class ShippingPolicy : Saga<ShippingPolicyData>,
IAmStartedByMessages<OrderPlaced>,
IAmStartedByMessages<OrderBilled>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ public partial class TestableEndpointInstance : TestableMessageSession, IEndpoin
/// <summary>
/// Stops the endpoint.
/// </summary>
#pragma warning disable PS0002 // Instance methods on types implementing ICancellableContext should not have a CancellationToken parameter
public virtual Task Stop(CancellationToken cancellationToken = default)
#pragma warning restore PS0002 // Instance methods on types implementing ICancellableContext should not have a CancellationToken parameter
{
EndpointStopped = true;
return Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public TestingLoggerFactory()
}

/// <summary>
/// Controls the <see cref="Logging.LogLevel" /> for all default logging.
/// Controls the <see cref="LogLevel" /> for all default logging.
/// </summary>
/// <param name="level">The log level to be used.</param>
public void Level(LogLevel level)
Expand Down
4 changes: 2 additions & 2 deletions src/NServiceBus.Testing/NServiceBus.Testing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(SolutionDir)NServiceBus.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\NServiceBus.snk</AssemblyOriginatorKeyFile>
<Description>A testing framework for NServiceBus</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fody" Version="6.8.0" PrivateAssets="All" />
<PackageReference Include="NServiceBus" Version="9.0.0-alpha.1" />
<PackageReference Include="NServiceBus" Version="[9.0.0, 10.0.0)" />
<PackageReference Include="Obsolete.Fody" Version="5.3.0" PrivateAssets="All" />
<PackageReference Include="Particular.Packaging" Version="4.0.0" PrivateAssets="All" />
</ItemGroup>
Expand Down
Loading

0 comments on commit c4c18b8

Please sign in to comment.