public void Apply(FundsDespoitedEvent @event) { var newTranscation = new Transcation { Id = @event.Id, Amount = @event.Amount }; Transcations.Add(newTranscation); CurrentBalance = CurrentBalance + @event.Amount; }
public void Apply(FundsDespoitedEvent @event) { var newTranscation = new Transcation { Id = @event.Id, Amount = @event.Amount }; Transcations.Add(newTranscation); CurrentBalance = CurrentBalance + @event.Amount; }