Current section

Files

Jump to
commanded test commands support identity identity_aggregate_router.ex
Raw

test/commands/support/identity/identity_aggregate_router.ex

defmodule Commanded.Commands.IdentityAggregateRouter do
@moduledoc false
use Commanded.Commands.Router
alias Commanded.Commands.IdentityAggregate
alias Commanded.Commands.IdentityAggregate.IdentityCommand
identify IdentityAggregate,
by: :uuid,
prefix: "prefix-"
dispatch IdentityCommand, to: IdentityAggregate
end