@Test public void testHandleConfirmPaid() throws Exception { ConfirmPaidFeeCommand command = new ConfirmPaidFeeCommand(paidFeeId, "1223123sequenceNumber", tradeTime); paidFixture.given(new PaidFeeCreatedEvent( paidFeeId, FeeStatus.PENDING, sellCommissionAmount, FeeType.PAY_COIN, tradeTime, dueDate, portfolioId.toString(), userId.toString(), BusinessType.TRADE_EXECUTED, orderTransactionId.toString(), PaidMode.INTERNAL)) .when(command) .expectEvents(new PaidFeeConfirmedEvent(paidFeeId, "1223123sequenceNumber", tradeTime)); }
@CommandHandler public void handleConfirmPaid(ConfirmPaidFeeCommand command) { PaidFee fee = paidFeeRepository.load(command.getFeeId()); fee.confirm(command.getSequenceNumber(), command.getConfirmedDate()); }
ReceivedPaidFeeCommandHandler { @CommandHandler public void handleConfirmPaid(ConfirmPaidFeeCommand command) { PaidFee fee = paidFeeRepository.load(command.getFeeId()); fee.confirm(command.getSequenceNumber(), command.getConfirmedDate()); } }
ReceivedPaidFeeCommandHandler { @CommandHandler public void handleConfirmPaid(ConfirmPaidFeeCommand command) { PaidFee fee = paidFeeRepository.load(command.getFeeId()); fee.confirm(command.getSequenceNumber(), command.getConfirmedDate()); }  }
ReceivedPaidFeeCommandHandler { @CommandHandler public void handleConfirmPaid(ConfirmPaidFeeCommand command) { PaidFee fee = paidFeeRepository.load(command.getFeeId()); fee.confirm(command.getSequenceNumber(), command.getConfirmedDate()); }  @CommandHandler void handleCreateReceived(CreateReceivedFeeCommand command); @CommandHandler void handleConfirmReceived(ConfirmReceivedFeeCommand command); @CommandHandler void handleOffsetReceived(OffsetReceivedFeeCommand command); @CommandHandler void handleCancelReceived(CancelReceivedFeeCommand command); @CommandHandler void handleCreatePaid(CreatePaidFeeCommand command); @CommandHandler void handleConfirmPaid(ConfirmPaidFeeCommand command); @CommandHandler void handleOffsetPaid(OffsetPaidFeeCommand command); @CommandHandler void handleCancelPaid(CancelPaidFeeCommand command); @Resource(name = "receivedFeeRepository") void setReceivedFeeRepository(Repository<ReceivedFee> receivedFeeRepository); @Resource(name = "paidFeeRepository") void setPaidFeeRepository(Repository<PaidFee> paidFeeRepository); }
ReceivedPaidFeeCommandHandler { @CommandHandler public void handleConfirmPaid(ConfirmPaidFeeCommand command) { PaidFee fee = paidFeeRepository.load(command.getFeeId()); fee.confirm(command.getSequenceNumber(), command.getConfirmedDate()); }  @CommandHandler void handleCreateReceived(CreateReceivedFeeCommand command); @CommandHandler void handleConfirmReceived(ConfirmReceivedFeeCommand command); @CommandHandler void handleOffsetReceived(OffsetReceivedFeeCommand command); @CommandHandler void handleCancelReceived(CancelReceivedFeeCommand command); @CommandHandler void handleCreatePaid(CreatePaidFeeCommand command); @CommandHandler void handleConfirmPaid(ConfirmPaidFeeCommand command); @CommandHandler void handleOffsetPaid(OffsetPaidFeeCommand command); @CommandHandler void handleCancelPaid(CancelPaidFeeCommand command); @Resource(name = "receivedFeeRepository") void setReceivedFeeRepository(Repository<ReceivedFee> receivedFeeRepository); @Resource(name = "paidFeeRepository") void setPaidFeeRepository(Repository<PaidFee> paidFeeRepository);  }