-
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.
Merge pull request #387 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
122 changed files
with
3,358 additions
and
16 deletions.
There are no files selected for viewing
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
35 changes: 35 additions & 0 deletions
35
...Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchIndexingStatusTest.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,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using Xunit; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.BusinessUnits | ||
{ | ||
public class ByProjectKeyBusinessUnitsSearchIndexingStatusTest : 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") | ||
.BusinessUnits() | ||
.SearchIndexingStatus() | ||
.Get() | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/business-units/search/indexing-status", | ||
} | ||
}; | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...sts/Generated/Client/RequestBuilders/BusinessUnits/ByProjectKeyBusinessUnitsSearchTest.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,45 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using Xunit; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.BusinessUnits | ||
{ | ||
public class ByProjectKeyBusinessUnitsSearchTest : 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") | ||
.BusinessUnits() | ||
.Search() | ||
.Post(null) | ||
.Build(), | ||
"Post", | ||
"/test_projectKey/business-units/search", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.BusinessUnits() | ||
.Search() | ||
.Head() | ||
.Build(), | ||
"Head", | ||
"/test_projectKey/business-units/search", | ||
} | ||
}; | ||
} | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
...k.Api.Tests/Generated/Client/RequestBuilders/Channels/ByProjectKeyChannelsKeyByKeyTest.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,109 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using Xunit; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.Channels | ||
{ | ||
public class ByProjectKeyChannelsKeyByKeyTest : 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") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Get() | ||
.WithExpand("expand") | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/channels/key=test_key?expand=expand", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Get() | ||
.Build(), | ||
"Get", | ||
"/test_projectKey/channels/key=test_key", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Head() | ||
.Build(), | ||
"Head", | ||
"/test_projectKey/channels/key=test_key", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Post(null) | ||
.WithExpand("expand") | ||
.Build(), | ||
"Post", | ||
"/test_projectKey/channels/key=test_key?expand=expand", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Post(null) | ||
.Build(), | ||
"Post", | ||
"/test_projectKey/channels/key=test_key", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Delete() | ||
.WithVersion(2) | ||
.Build(), | ||
"Delete", | ||
"/test_projectKey/channels/key=test_key?version=2", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Delete() | ||
.WithExpand("expand") | ||
.Build(), | ||
"Delete", | ||
"/test_projectKey/channels/key=test_key?expand=expand", | ||
}, | ||
new Object[] { | ||
ApiRoot | ||
.WithProjectKey("test_projectKey") | ||
.Channels() | ||
.WithKey("test_key") | ||
.Delete() | ||
.Build(), | ||
"Delete", | ||
"/test_projectKey/channels/key=test_key", | ||
} | ||
}; | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
....Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Graphql/ByProjectKeyGraphqlTest.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,34 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using Xunit; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.HistoryApi.Tests.Client.RequestBuilders.Graphql | ||
{ | ||
public class ByProjectKeyGraphqlTest : 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 | ||
.WithProjectKeyValue("test_projectKey") | ||
.Graphql() | ||
.Post(null) | ||
.Build(), | ||
"Post", | ||
"/test_projectKey/graphql", | ||
} | ||
}; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.