internal void Process(SpendingCategoryChanged @event) => _allOperations[@event.OperationId.Value].Category = @event.Category.Value;
Beispiel #2
0
 internal void Handle(SpendingCategoryChanged @event) => _periodOperations.Process(@event);
 public Task Handle(SpendingCategoryChanged @event, CancellationToken cancellationToken)
 {
     _databaseRepository.UpdateOperation(PeriodId.From(@event.AggregateId), @event.OperationId, spendingCategory: @event.Category);
     return(Task.CompletedTask);
 }