Skip to content

Commit

Permalink
[PracticalEventSourcing]: Added missing PackageWasSent event
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Oct 7, 2020
1 parent 171273a commit 0b29171
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# **/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
Expand Down
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;
}
}
}

0 comments on commit 0b29171

Please sign in to comment.