Dumplie\Customer\Tests\InMemory\InMemoryCustomerContext::__construct PHP Method

__construct() public method

public __construct ( Dumplie\SharedKernel\Application\EventLog $eventLog, Dumplie\SharedKernel\Tests\Context\CommandBusFactory $commandBusFactory, array $products = [] )
$eventLog Dumplie\SharedKernel\Application\EventLog
$commandBusFactory Dumplie\SharedKernel\Tests\Context\CommandBusFactory
$products array
    public function __construct(EventLog $eventLog, CommandBusFactory $commandBusFactory, array $products = [])
    {
        $this->carts = new InMemoryCarts();
        $this->checkouts = new InMemoryCheckouts();
        $this->orders = new InMemoryOrders();
        $this->products = new InMemoryProducts($products);
        $this->commandBus = $this->createCommandBus($eventLog, $commandBusFactory);
    }
InMemoryCustomerContext