}
@Given("^my shopping cart contains ([\\d]+) book with price (.+)$")
public void cartContainsBook(int count, double price) throws Exception {
for (int i = 0; i < count; i++) {
Book book = new Book();
book.setPrice(price);
bookDao.addBook(book); // book must be persisted in order to persist the order later
cartManager.AddBook(book, 1);
}
}