public void When(TransferStarted e) { FromAccount = e.FromAccount; ToAccount = e.ToAccount; Amount = e.Amount; Status = TransferStatus.Started; }
public void StartTransfer(Guid fromAccount, Guid toAccount, decimal amount) { var e = new TransferStarted(fromAccount, toAccount, amount); Apply(e); }