# `DDD.BoundedContext`
[🔗](https://github.com/blackuprise/vicander/blob/v0.1.1/lib/ddd/model/bounded_context.ex#L1)

Macro for declaring a Bounded Context.

## Usage

    defmodule MyApp.Ordering do
      use DDD.BoundedContext

      bounded_context name: "Ordering",
                      description: "Order lifecycle from placement to fulfillment"

      context_api do
        exposes MyApp.PlaceOrderUseCase
      end

      publishes_events [MyApp.Events.OrderPlaced, MyApp.Events.OrderConfirmed]

      subscribes_to [
        {MyApp.Inventory.Events.StockReserved, MyApp.Ordering.Handlers.StockHandler}
      ]
    end

# `bounded_context`
*macro* 

# `context_api`
*macro* 

# `exposes`
*macro* 

# `publishes_events`
*macro* 

# `subscribes_to`
*macro* 

---

*Consult [api-reference.md](api-reference.md) for complete listing*
