Skip to content

Instantly share code, notes, and snippets.

@dcomartin dcomartin/events.cs
Created Aug 22, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.