Пример #1
0
        public void Apply(FundsWithdrawedEvent @event)
        {
            var newTranscation = new Transcation {
                Id = @event.Id, Amount = @event.Amount
            };

            Transcations.Add(newTranscation);
            CurrentBalance = CurrentBalance - @event.Amount;
        }
Пример #2
0
 public void Apply(FundsWithdrawedEvent @event)
 {
     var newTranscation = new Transcation { Id = @event.Id, Amount = @event.Amount };
     Transcations.Add(newTranscation);
     CurrentBalance = CurrentBalance - @event.Amount;
 }