Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const bus = await builder.build();
await bus.start();

// Send a message
const transaction = await bus.createTransaction();
transaction.addOutgoingMessage({ type: 'UserCreated', userId: 123 });
const transaction = await bus.createOutgoingTransaction();
transaction.add({ type: 'UserCreated', userId: 123 });
await transaction.commit();

await bus.stop();
Expand All @@ -75,8 +75,8 @@ bus = await builder.build()
await bus.start()

# Send a message
transaction = await bus.create_transaction()
transaction.add_outgoing_message({'type': 'UserCreated', 'user_id': 123})
transaction = await bus.create_outgoing_transaction()
transaction.add({'type': 'UserCreated', 'user_id': 123})
await transaction.commit()

await bus.stop()
Expand Down Expand Up @@ -104,8 +104,8 @@ var bus = await builder.Build();
await bus.Start();

// Send a message
var transaction = await bus.CreateTransaction();
transaction.AddOutgoingMessage(new { Type = "UserCreated", UserId = 123 });
var transaction = await bus.CreateOutgoingTransaction();
transaction.Add(new { Type = "UserCreated", UserId = 123 });
await transaction.Commit();

await bus.Stop();
Expand Down
1 change: 1 addition & 0 deletions src/dotnet/PloyBus.Tests/PloyBus.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="NUnit" Version="4.4.0" />
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
Expand Down
198 changes: 0 additions & 198 deletions src/dotnet/PloyBus.Tests/PolyBusTests.cs

This file was deleted.

9 changes: 9 additions & 0 deletions src/dotnet/PloyBus.Tests/Transport/InMemory/AlphaCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using PolyBus.Transport.Transactions.Messages;

namespace PolyBus.Transport.InMemory;

[MessageInfo(MessageType.Command, "alpha", "alpha-command", 1, 0, 0)]
class AlphaCommand
{
public required string Name { get; set; }
}
9 changes: 9 additions & 0 deletions src/dotnet/PloyBus.Tests/Transport/InMemory/AlphaEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using PolyBus.Transport.Transactions.Messages;

namespace PolyBus.Transport.InMemory;

[MessageInfo(MessageType.Event, "alpha", "alpha-event", 1, 0, 0)]
class AlphaEvent
{
public required string Name { get; set; }
}
63 changes: 0 additions & 63 deletions src/dotnet/PloyBus.Tests/Transport/InMemory/InMemoryTests.cs

This file was deleted.

Loading
Loading