public Task Handle(IDomainEvent <Account, AccountId, FeesDeductedEvent> domainEvent) { var command = new AddRevenueCommand(domainEvent.AggregateEvent.Amount); RevenueRepository.Tell(command); return(Task.CompletedTask); }
private bool Handle(AddRevenueCommand command) { Revenue = Revenue + command.AmountToAdd; Transactions++; return(true); }