var _ = Describe("Chef TODOs", func() { var ( openTabCmd cafe.OpenTab tabID uuid.UUID drinks []cafe.OrderedItem food []cafe.OrderedItem ) BeforeEach(func() { openTabCmd = cafe.NewOpenTab(1, "Kinessa") tabID = openTabCmd.ID drinks = []cafe.OrderedItem{} drinks = append(drinks, cafe.NewOrderedItem(1, "Patron", true, 5.00)) drinks = append(drinks, cafe.NewOrderedItem(2, "Scotch", true, 3.50)) food = []cafe.OrderedItem{} food = append(food, cafe.NewOrderedItem(1, "Steak", false, 15.00)) food = append(food, cafe.NewOrderedItem(2, "Burger", false, 8.00)) }) AfterEach(func() { stopAllTestConsumers() }) Describe("todoList Group", func() { BeforeEach(func() { cafe.Send(cafe.OpenTabTopic, openTabCmd) cafe.Send(cafe.PlaceOrderTopic, cafe.NewPlaceOrder(tabID, append(food, drinks...)))
// Test Data func init() { food = append(food, cafe.NewOrderedItem(0, "Steak", false, 15.00)) food = append(food, cafe.NewOrderedItem(1, "Burger", false, 8.00)) }