public SellersService( IMarketplaceWebServiceSellers client, GetAuthTokenRequest request )
        {
            Condition.Requires( client, "client" ).IsNotNull();
            Condition.Requires( request, "request" ).IsNotNull();

            this._client = client;
            this._request = request;
        }
 public string GetMwsAuthToken()
 {
     var token = string.Empty;
     ActionPolicies.AmazonGetPolicy.Do( () =>
     {
         var client = this._factory.CreateSellersClient();
         var request = new GetAuthTokenRequest
         {
             SellerId = this._credentials.SellerId,
         };
         var service = new SellersService( client, request );
         try
         {
             token = service.GetToken();
         }
         catch( MarketplaceWebServiceSellersException x )
         {
             if( !( x.Message.Contains( "Invalid seller id" ) || x.Message.Contains( "denied" ) ) ) // ignore error with invalid seller id, rethrow on other issues
                 throw;
         }
     } );
     return token;
 }