Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created August 22, 2019 17:24
Show Gist options
  • Save dcomartin/fac64044da03bb66c2bdf0c18684b6dc to your computer and use it in GitHub Desktop.
Save dcomartin/fac64044da03bb66c2bdf0c18684b6dc to your computer and use it in GitHub Desktop.
using System;
namespace SqlStreamStore.Demo
{
public abstract class AccountEvent
{
public Guid TransactionId { get; }
public decimal Amount { get; }
public DateTime DateTime { get; }
public AccountEvent(Guid transactionId, decimal amount, DateTime dateTime)
{
TransactionId = transactionId;
Amount = amount;
DateTime = dateTime;
}
}
public class Deposited : AccountEvent
{
public Deposited(Guid transactionId, decimal amount, DateTime dateTime) : base(transactionId, amount, dateTime)
{
}
}
public class Withdrawn : AccountEvent
{
public Withdrawn(Guid transactionId, decimal amount, DateTime dateTime) : base(transactionId, amount, dateTime)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment