zilverline/sequent

View on GitHub
integration-specs/rails-app/app/domain/invoicing/command_handler.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Invoicing
  class CommandHandler < Sequent::CommandHandler
    on Commands::Create do |command|
      repository.add_aggregate(Invoice.new(command))
    end
  end
end