This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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