Example #1
0
        public void Apply(FundsWithdrawedEvent @event)
        {
            var newTranscation = new Transcation {
                Id = @event.Id, Amount = @event.Amount
            };

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