Sha256: 3a3ef8e8af92349aa329a16c5c368ba092b031d114ff8dd3d1de6906efe40ce3

Contents?: true

Size: 895 Bytes

Versions: 1

Compression:

Stored size: 895 Bytes

Contents

require 'pact'
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.1.1 lib/pact/messages.rb