Skip to content

Instantly share code, notes, and snippets.

@Zuchos
Last active November 28, 2019 15:30
Show Gist options
  • Save Zuchos/369ff4b828703f8d9ead0c956c80bc27 to your computer and use it in GitHub Desktop.
Save Zuchos/369ff4b828703f8d9ead0c956c80bc27 to your computer and use it in GitHub Desktop.
scenario-name: "Lukasz orders XL margarita on crust with chees to his default addrress"
given {
users: [{name: "Lukasz", address: {line1: "Elm Street", line1:"12", city: "Warsaw"}}]
funds: [{user: "Lukasz", funds: "200.00"}]
}
when {
make-orders: [
{
order-name: "Lukasz's 1st order", user: "Lukasz", items: {
pizzas: [{compistion: "Margarita", crust: "CheeseFilledCrust", size: "XL"}]
}
}
]
}
then {
users-receipts: {order-name: "Lukasz's 1st order", price: "186.00", delivery-address: {first-line: "Elm Street", city: "Warsaw"}}
user-funds: {name: "Lukasz", funds: "186.00"}
reciepts-history: ["Lukasz's 1st order"]
scheduled-deliveries: [{orderName: "Lukasz's 1st order", delivery-address: {first-line: "Elm Street", city: "Warsaw"}}],
delivered-orders: ["Lukasz's 1st order"]
kitchen-has-prepared-orders: ["Lukasz's 1st order"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment