From 064506c05728e8fc1842e63e1e642b27b1abcdb3 Mon Sep 17 00:00:00 2001 From: Oskar Dudycz Date: Mon, 5 Oct 2020 23:38:22 +0200 Subject: [PATCH] Added missing SentPackage command --- .../Packages/Commands/SentPackage.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Workshops/PracticalEventSourcing/Shipments/Packages/Commands/SentPackage.cs diff --git a/Workshops/PracticalEventSourcing/Shipments/Packages/Commands/SentPackage.cs b/Workshops/PracticalEventSourcing/Shipments/Packages/Commands/SentPackage.cs new file mode 100644 index 000000000..11463746c --- /dev/null +++ b/Workshops/PracticalEventSourcing/Shipments/Packages/Commands/SentPackage.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using Carts.Carts.ValueObjects; +using Core.Commands; + +namespace Shipments.Packages.Commands +{ + public class SentPackage: ICommand + { + public Guid OrderId { get; } + + public IReadOnlyList ProductItems { get; } + + public SentPackage(Guid orderId, IReadOnlyList productItems) + { + OrderId = orderId; + ProductItems = productItems; + } + } +}