Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created February 17, 2021 22:07
Show Gist options
  • Save dcomartin/f1989316e40e6013c84524499afe029f to your computer and use it in GitHub Desktop.
Save dcomartin/f1989316e40e6013c84524499afe029f to your computer and use it in GitHub Desktop.
public interface IEvent {}
public record ProductShipped(string Sku, int Quantity, DateTime DateTime) : IEvent;
public record ProductReceived(string Sku, int Quantity, DateTime DateTime) : IEvent;
public record InventoryAdjusted(string Sku, int Quantity, string Reason, DateTime DateTime) : IEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment