Dumplie\CustomerService\Tests\CustomerServiceContext::customerPlacedOrder PHP Method

customerPlacedOrder() public method

public customerPlacedOrder ( string $orderId )
$orderId string
    public function customerPlacedOrder(string $orderId);

Usage Example

Example #1
0
 function test_send_order()
 {
     $orderId = (string) Uuid::uuid4();
     $this->customerServiceContext->customerPlacedOrder($orderId);
     $acceptCommand = new AcceptOrder($orderId);
     $this->customerServiceContext->commandBus()->handle($acceptCommand);
     $prepareCommand = new PrepareOrder($orderId);
     $this->customerServiceContext->commandBus()->handle($prepareCommand);
     $sendCommand = new SendOrder($orderId);
     $this->customerServiceContext->commandBus()->handle($sendCommand);
 }
All Usage Examples Of Dumplie\CustomerService\Tests\CustomerServiceContext::customerPlacedOrder