Create order (Rust)
Generated output
Section titled “Generated output”### ✅ Create orderTags: `db`, `smoke`
- **Given** the database is seeded- **And** the API is running- **When** the client creates an order- **Then** the response status should be 201- **And** the order should exist in the databaseRust code
Section titled “Rust code”use executable_stories::Story;
#[test]fn test_create_order() { let mut s = Story::new("Create order").with_tags(&["db", "smoke"]); s.given("the database is seeded"); s.given("the API is running"); s.when("the client creates an order"); s.then("the response status should be 201"); s.then("the order should exist in the database"); s.pass();}