-
-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PracticalEventSourcing]: Added missing PackageWasSent event
- Loading branch information
1 parent
171273a
commit 0b29171
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
Workshops/PracticalEventSourcing/Shipments/Packages/Events/External/PackageWasSent.cs
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,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Carts.Carts.ValueObjects; | ||
using Core.Events; | ||
|
||
namespace Shipments.Packages.Events.External | ||
{ | ||
public class PackageWasSent : IExternalEvent | ||
{ | ||
public Guid PackageId { get; } | ||
public Guid OrderId { get; } | ||
|
||
public IReadOnlyList<ProductItem> ProductItems { get; } | ||
|
||
public DateTime SentAt { get; } | ||
|
||
public PackageWasSent(Guid packageId, Guid orderId, IReadOnlyList<ProductItem> productItems, DateTime sentAt) | ||
{ | ||
OrderId = orderId; | ||
ProductItems = productItems; | ||
SentAt = sentAt; | ||
PackageId = packageId; | ||
} | ||
} | ||
} |