Skip to content

Commit

Permalink
Update generated SDKs (#213)
Browse files Browse the repository at this point in the history
Co-authored-by: Auto Mation <[email protected]>
  • Loading branch information
github-actions[bot] and Auto Mation authored Feb 20, 2023
1 parent 119f26e commit 2b6e57d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
**Api changes**

<details>
<summary>Added QueryParameter(s)</summary>
<summary>Added Type(s)</summary>

- added query parameter `sort` to method `get /{projectKey}/product-selections/key={key}/products`
- added query parameter `sort` to method `get /{projectKey}/product-selections/{ID}/products`
- added type `GoogleCloudFunctionDestination`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ public async void api_and_import()
var apiConfig = configuration.GetSection("Client").Get<ClientConfiguration>();
var importApiRoot = p.GetService<ImportProjectApiRoot>();
var apiRoot = p.GetService<ProjectApiRoot>();

Assert.Equal("Import", importApiRoot.ClientName);
Assert.Equal("Client", apiRoot.ClientName);
var project = await apiRoot.Get().ExecuteAsync().ConfigureAwait(false);

Assert.Equal(apiConfig.ProjectKey, project.Key);

var importContainers = await importApiRoot.ImportContainers().Get().ExecuteAsync().ConfigureAwait(false);
Assert.NotNull(importContainers);


}

[Fact]
public async void api_and_import_create_root()
{
Expand All @@ -64,24 +64,24 @@ public async void api_and_import_create_root()

var importConfig = configuration.GetSection("Import").Get<ClientConfiguration>();
var apiConfig = configuration.GetSection("Client").Get<ClientConfiguration>();

var importApiRoot = clients.First(client => client.Name == "Import")
.WithImportApi(importConfig.ProjectKey);
var apiRoot = clients.First(client => client.Name == "Client")
.WithProject(apiConfig.ProjectKey);

Assert.Equal("Import", importApiRoot.ClientName);
Assert.Equal("Client", apiRoot.ClientName);

var project = await apiRoot.Get().ExecuteAsync().ConfigureAwait(false);

Assert.Equal(apiConfig.ProjectKey, project.Key);

var importContainers = await importApiRoot.ImportContainers().Get().ExecuteAsync().ConfigureAwait(false);
Assert.NotNull(importContainers);


}

}
}

0 comments on commit 2b6e57d

Please sign in to comment.