use of org.qi4j.dci.moneytransfer.context.PayBillsContext in project qi4j-sdk by Qi4j.
the class TransferMoneyTest method payAllBills.
@Test
public void payAllBills() throws Exception {
UnitOfWork uow = assembler.module().newUnitOfWork(newUsecase("Pay all bills from checking to creditors"));
try {
BalanceData source = uow.get(BalanceData.class, CHECKING_ACCOUNT_ID);
PayBillsContext context = new PayBillsContext();
context.bind(source).payBills();
} finally {
uow.discard();
}
}
Aggregations