Sha256: 67f1cd4e22c58011651e919d0e56540d1352c968fc4d43d4af46195cd8bb8653

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

# frozen_string_literal: true

require 'helper'
require 'mws/sellers/client'

class TestMWSSellersClient < MiniTest::Test
  def setup
    @client = MWS::Sellers::Client.new
  end

  def test_listing_marketplace_participations
    operation = {
      'Action' => 'ListMarketplaceParticipations'
    }

    @client.stub(:run, nil) do
      @client.list_marketplace_participations
    end

    assert_equal operation, @client.operation
  end

  def test_listing_marketplace_participations_by_next_token
    operation = {
      'Action' => 'ListMarketplaceParticipationsByNextToken',
      'NextToken' => '1'
    }

    @client.stub(:run, nil) do
      @client.list_marketplace_participations_by_next_token('1')
    end

    assert_equal operation, @client.operation
  end

  def test_getting_service_status
    operation = {
      'Action' => 'GetServiceStatus'
    }

    @client.stub(:run, nil) do
      @client.get_service_status
    end

    assert_equal operation, @client.operation
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-2.1.1 test/unit/mws/test_sellers_client.rb
peddler-2.1.0 test/unit/mws/test_sellers_client.rb