Skip to content

Commit

Permalink
Remove OrderPlaced from Core
Browse files Browse the repository at this point in the history
  • Loading branch information
fredimachado committed May 19, 2024
1 parent fececb3 commit 0a49f6e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Barista/NCafe.Barista.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
using NCafe.Barista.Api.Hubs;
using NCafe.Barista.Api.Projections;
using NCafe.Barista.Domain.Commands;
using NCafe.Barista.Domain.Messages;
using NCafe.Barista.Domain.Queries;
using NCafe.Barista.Domain.ReadModels;
using NCafe.Core.Commands;
using NCafe.Core.MessageBus.Events;
using NCafe.Core.Queries;
using NCafe.Infrastructure;
using NCafe.Shared.Hubs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace NCafe.Core.MessageBus.Events;
using NCafe.Core.MessageBus;

namespace NCafe.Barista.Domain.Messages;

[Message("cashier")]
public sealed record OrderPlaced(Guid Id, Guid ProductId, int Quantity) : IBusMessage;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using NCafe.Cashier.Domain.Commands;
using NCafe.Cashier.Domain.Entities;
using NCafe.Cashier.Domain.Exceptions;
using NCafe.Cashier.Domain.Messages;
using NCafe.Cashier.Domain.ReadModels;
using NCafe.Core.MessageBus;
using NCafe.Core.MessageBus.Events;
using NCafe.Core.ReadModels;
using NCafe.Core.Repositories;

Expand Down
4 changes: 2 additions & 2 deletions src/Cashier/NCafe.Cashier.Domain/Commands/PlaceOrder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NCafe.Core.MessageBus.Events;
using NCafe.Cashier.Domain.Exceptions;
using NCafe.Cashier.Domain.Exceptions;
using NCafe.Cashier.Domain.Entities;
using NCafe.Cashier.Domain.Messages;
using NCafe.Cashier.Domain.ReadModels;
using NCafe.Core.Commands;
using NCafe.Core.MessageBus;
Expand Down
5 changes: 5 additions & 0 deletions src/Cashier/NCafe.Cashier.Domain/Messages/OrderPlaced.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using NCafe.Core.MessageBus;

namespace NCafe.Cashier.Domain.Messages;

public sealed record OrderPlaced(Guid Id, Guid ProductId, int Quantity) : IBusMessage;

0 comments on commit 0a49f6e

Please sign in to comment.