Skip to content
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/AccessScope_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AccessScope_Tests_Fixture : IAsyncLifetime

public Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

return Task.CompletedTask;
}
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/ApplicationCredit_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ApplicationCredit_Tests

public ApplicationCredit_Tests()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());
}

[Fact(Skip = "Application Credits cannot be tested because they're unusable in a private application.")]
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Article_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public class Article_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
BlogService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Asset_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public class Asset_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
ThemeService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Blog_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class Blog_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one blog for methods like count, get, list, etc.
await Create();
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Carrier_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class Carrier_Tests_Fixture

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one blog for methods like count, get, list, etc.
await Create();
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Checkout_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Checkout_Tests

public Checkout_Tests()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Collect_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public class Collect_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
CustomCollectionService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Collection_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class Collection_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
CustomCollectionService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Country_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class Country_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one for count, list, get, etc.
await Create("IT");
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/CustomCollection_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class CustomCollection_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one collection for use with count, list, get, etc. tests.
await Create();
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/CustomerAddress_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class CustomerAddress_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
CustomerService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/CustomerSavedSearch_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class CustomerSavedSearchavedSearch_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one customer for use with count, list, get, etc. tests.
await Create();
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Customer_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public class Customer_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one customer for use with count, list, get, etc. tests.
await Create();
Expand Down
1 change: 1 addition & 0 deletions ShopifySharp.Tests/DateTime_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public async Task GraphQL_CompareOrderDates()
await Task.Delay(TimeSpan.FromSeconds(11));

var graphService = new GraphService(Utils.MyShopifyUrl, Utils.AccessToken);
graphService.SetExecutionPolicy(new LeakyBucketExecutionPolicy());
var graphQlOrder = await graphService.PostAsync(
@"
{
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/DiscountCode_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class DiscountCodes_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

DiscountCodeService.SetExecutionPolicy(policy);
PriceRuleService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/DraftOrder_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public class DraftOrder_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create one for count, list, get, etc. tests.
await Create();
Expand Down
4 changes: 2 additions & 2 deletions ShopifySharp.Tests/Event_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task Lists_Events_For_Subjects()
{
// Get an order id
var orderService = new OrderService(Utils.MyShopifyUrl, Utils.AccessToken);
orderService.SetExecutionPolicy(new SmartRetryExecutionPolicy(false));
orderService.SetExecutionPolicy(new LeakyBucketExecutionPolicy(false));

long orderId = (await orderService.ListAsync(new OrderListFilter()
{
Expand Down Expand Up @@ -75,7 +75,7 @@ public class Event_Tests_Fixture

public Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy(false));
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy(false));

return Task.CompletedTask;
}
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/FulfillmentEvents_Tests .cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class FulfillmentEvents_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy(false);
var policy = new LeakyBucketExecutionPolicy(false);

// Fulfillment API has a stricter rate limit when on a non-paid store.
FulfillmentService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/FulfillmentOrder_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class FulfillmentOrder_Tests_Fixture : IAsyncLifetime
public async Task InitializeAsync()
{
// Fulfillment API has a stricter rate limit when on a non-paid store.
var policy = new SmartRetryExecutionPolicy(false);
var policy = new LeakyBucketExecutionPolicy(false);

FulfillmentService.SetExecutionPolicy(policy);
OrderService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/FulfillmentService_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class FulfillmentService_Tests_Fixture : IAsyncLifetime
public async Task InitializeAsync()
{
// Fulfillment API has a stricter rate limit when on a non-paid store.
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create a fulfillment service for count, list, get, etc. tests.
var fulfillmentServiceEntity = await Create();
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/Fulfillment_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public class Fulfillment_Tests_Fixture : IAsyncLifetime
public async Task InitializeAsync()
{
// Fulfillment API has a stricter rate limit when on a non-paid store.
var policy = new SmartRetryExecutionPolicy(false);
var policy = new LeakyBucketExecutionPolicy(false);

Service.SetExecutionPolicy(policy);
OrderService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/GiftCardAdjustment_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class GiftCardAdjustment_Tests_Fixture: IAsyncLifetime
public async Task InitializeAsync()
{

var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
GiftCardService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/GiftCard_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public class GiftCard_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Create an giftCard.
var giftCard = await Create(GiftCard_Tests.GiftCardValue);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/InventoryItem_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class InventoryItem_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
var policy = new SmartRetryExecutionPolicy();
var policy = new LeakyBucketExecutionPolicy();

Service.SetExecutionPolicy(policy);
VariantService.SetExecutionPolicy(policy);
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/InventoryLevel_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class InventoryLevel_Tests_Fixture : IAsyncLifetime

public async Task InitializeAsync()
{
Service.SetExecutionPolicy(new SmartRetryExecutionPolicy());
Service.SetExecutionPolicy(new LeakyBucketExecutionPolicy());

// Get a product id to use with these tests.
var prod = await ProductTest.Create();
Expand Down
Loading