Sha256: 5a9d0a65aa5413cbc90aa8b23f5ad5ee2fbf31bbbd95f4514cd7e2c006ca7e7d

Contents?: true

Size: 927 Bytes

Versions: 1

Compression:

Stored size: 927 Bytes

Contents

require "pact"
require "pact/messages/version"
require "pact/messages/consumer"
require "pact/messages/message_finder"

module Pact
  module Messages
    module_function

    def service_consumer(name, &block)
      Pact::Messages::Consumer::DSL::MessageConsumer.build(name, &block)
    end

    def build_mock_service(mock_service_name, &block)
      Pact::Messages::Consumer::MockServiceFactory.build(mock_service_name, &block)
    end

    def get_message_contract(provider_name, consumer_name, provider_state = nil)
      Pact::Messages::MessageFinder.get_message_contract(provider_name, consumer_name, provider_state)
    end

    def get_message_sample(provider_name, consumer_name, provider_state = nil)
      Pact::Messages::MessageFinder.get_message_sample(provider_name, consumer_name, provider_state)
    end

    def pact_broker_url=(url)
      Pact::Messages::MessageFinder.pact_broker_url = url
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-messages-0.2.0 lib/pact/messages.rb