-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Auto Mation <[email protected]> Co-authored-by: Jens Schulze <[email protected]>
- Loading branch information
1 parent
7aa34f6
commit a194c28
Showing
141 changed files
with
838 additions
and
2,075 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
...nt/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using Xunit; | ||
|
||
namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.ShippingMethods | ||
{ | ||
public class ByProjectKeyShippingMethodsMatchingCartLocationTest : RequestBuilderParentTests | ||
{ | ||
[Theory] | ||
[MemberData(nameof(GetData))] | ||
public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) | ||
{ | ||
Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); | ||
Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); | ||
} | ||
|
||
public static IEnumerable<object[]> GetData() | ||
{ | ||
return new List<object[]> { | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.ShippingMethods() | ||
.MatchingCartLocation() | ||
.Get() | ||
.WithCountry("country") | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/shipping-methods/matching-cart-location?country=country", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.ShippingMethods() | ||
.MatchingCartLocation() | ||
.Get() | ||
.WithState("state") | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/shipping-methods/matching-cart-location?state=state", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.ShippingMethods() | ||
.MatchingCartLocation() | ||
.Get() | ||
.WithCartId("cartId") | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/shipping-methods/matching-cart-location?cartId=cartId", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.ShippingMethods() | ||
.MatchingCartLocation() | ||
.Get() | ||
.WithExpand("expand") | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/shipping-methods/matching-cart-location?expand=expand", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.ShippingMethods() | ||
.MatchingCartLocation() | ||
.Get() | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/shipping-methods/matching-cart-location", | ||
} | ||
}; | ||
} | ||
} | ||
} |
36 changes: 0 additions & 36 deletions
36
...Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdTest.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...nerated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusTest.cs
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
...sts/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesTest.cs
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...ted/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdTest.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.