-
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 #81 from commercetools/RequestBuilders-UnitTests
Request builders Unit Tests
- Loading branch information
Showing
18 changed files
with
142 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
SHELL := /bin/bash | ||
PACKAGE_DIR ?= $(LIB_NAME) | ||
|
||
generate_sdk: | ||
generate_sdk: generate_sdk_main generate_sdk_test | ||
|
||
generate_sdk_main: | ||
rmf-codegen generate -o "commercetools.Sdk.$(LIB_NAME)/Generated" -t CSHARP_CLIENT -b "commercetools.$(LIB_NAME)" $(GEN_RAML_FILE) | ||
|
||
generate_sdk_test: | ||
rmf-codegen generate -o "Tests/commercetools.Sdk.$(LIB_NAME).Tests/Generated" -t CSHARP_TEST -b "commercetools.$(LIB_NAME).Tests" $(GEN_RAML_FILE) |
3 changes: 1 addition & 2 deletions
3
...rcetools.Api.Tests/ClientsFactoryTests.cs → ...ools.Sdk.Api.Tests/ClientsFactoryTests.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
4 changes: 1 addition & 3 deletions
4
...s/commercetools.Api.Tests/ProjectTests.cs → ...mmercetools.Sdk.Api.Tests/ProjectTests.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
9 changes: 9 additions & 0 deletions
9
commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/RequestBuilderParentTests.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,9 @@ | ||
using commercetools.Sdk.Api.Client; | ||
|
||
namespace commercetools.Api.Tests.Client | ||
{ | ||
public class RequestBuilderParentTests | ||
{ | ||
protected static readonly ApiRoot ApiRoot = new ApiRoot(null); | ||
} | ||
} |
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
File renamed without changes.
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
9 changes: 9 additions & 0 deletions
9
commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/RequestBuilderParentTests.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,9 @@ | ||
using commercetools.Sdk.HistoryApi.Client; | ||
|
||
namespace commercetools.HistoryApi.Tests.Client | ||
{ | ||
public class RequestBuilderParentTests | ||
{ | ||
protected static readonly HistoryApiRoot ApiRoot = new HistoryApiRoot(null); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ls.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/commercetools.Sdk.HistoryApi.Tests.csproj
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,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.2" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\commercetools.Base.Serialization\commercetools.Base.Serialization.csproj" /> | ||
<ProjectReference Include="..\..\commercetools.Sdk.HistoryApi\commercetools.Sdk.HistoryApi.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Generated" /> | ||
</ItemGroup> | ||
|
||
</Project> |
9 changes: 9 additions & 0 deletions
9
commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/RequestBuilderParentTests.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,9 @@ | ||
using commercetools.Sdk.ImportApi.Client; | ||
|
||
namespace commercetools.ImportApi.Tests.Client | ||
{ | ||
public class RequestBuilderParentTests | ||
{ | ||
protected static readonly ImportApiRoot ApiRoot = new ImportApiRoot(null); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/commercetools.Sdk.ImportApi.Tests.csproj
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,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.2" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\commercetools.Base.Serialization\commercetools.Base.Serialization.csproj" /> | ||
<ProjectReference Include="..\..\commercetools.Sdk.ImportApi\commercetools.Sdk.ImportApi.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Generated" /> | ||
</ItemGroup> | ||
</Project> |
9 changes: 9 additions & 0 deletions
9
commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/RequestBuilderParentTests.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,9 @@ | ||
using commercetools.Sdk.MLApi.Client; | ||
|
||
namespace commercetools.MLApi.Tests.Client | ||
{ | ||
public class RequestBuilderParentTests | ||
{ | ||
protected static readonly MLApiRoot ApiRoot = new MLApiRoot(null); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/commercetools.Sdk.MLApi.Tests.csproj
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,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.2" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\commercetools.Base.Serialization\commercetools.Base.Serialization.csproj" /> | ||
<ProjectReference Include="..\..\commercetools.Sdk.MLApi\commercetools.Sdk.MLApi.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Generated" /> | ||
</ItemGroup> | ||
</Project> |
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
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