Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

added aggregateroot Book #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ramondelafuente
Copy link
Contributor

Added aggregateRoot Book
Updated Broadway to 0.3
Added guards and Exceptions

@ramondelafuente
Copy link
Contributor Author

ping @jaspernbrouwer

$events->getIterator()->shouldContainEventTypes($eventTypeList);
}

function it_is_checked_out()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still called "checkout" in stead of "borrow".

@jaspernbrouwer
Copy link
Contributor

Maybe move the ifs to separate (guard) methods? Something like guardItIsNotDiscarded() which will throw an exception, and itIsBorrowed() which will return a boolean.

@ramondelafuente
Copy link
Contributor Author

ping @jaspernbrouwer - how do the guards and exceptions look?

added some iffs for situations that do not change state, and also an additional guard (with Java Juice)
@ramondelafuente ramondelafuente changed the title added aggregateroot Book and refactored Checkout() to Borrow() added aggregateroot Book Nov 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants