コード例 #1
0
 public function handleCreateExpenseListCommand(CreateExpenseListCommand $command)
 {
     $this->expenseListRepository->add(ExpenseList::named(new ExpenseListId($command->getId()), $command->getName(), $command->getAccountId()));
 }
コード例 #2
0
 /**
  * @Then /^the expense list should not be saved$/
  */
 public function theExpenseListShouldNotBeSaved()
 {
     $expenseList = $this->repository->findByName(null);
     \PHPUnit_Framework_Assert::assertNull($expenseList);
 }