![]() |
VOOZH | about |
dotnet add package Siemens.AspNet.MsTest.Sdk --version 7.5.6
NuGet\Install-Package Siemens.AspNet.MsTest.Sdk -Version 7.5.6
<PackageReference Include="Siemens.AspNet.MsTest.Sdk" Version="7.5.6" />
<PackageVersion Include="Siemens.AspNet.MsTest.Sdk" Version="7.5.6" />Directory.Packages.props
<PackageReference Include="Siemens.AspNet.MsTest.Sdk" />Project file
paket add Siemens.AspNet.MsTest.Sdk --version 7.5.6
#r "nuget: Siemens.AspNet.MsTest.Sdk, 7.5.6"
#:package Siemens.AspNet.MsTest.Sdk@7.5.6
#addin nuget:?package=Siemens.AspNet.MsTest.Sdk&version=7.5.6Install as a Cake Addin
#tool nuget:?package=Siemens.AspNet.MsTest.Sdk&version=7.5.6Install as a Cake Tool
This NuGet package provides utilities for API testing with a focus on AWS DynamoDB and Docker. It helps set up DynamoDB services within a Docker container for testing purposes and includes additional features to manage environment variables and API interactions.
You can install this package using the following NuGet command:
dotnet add package Siemens.AspNet.MsTest.Sdk
The following example demonstrates how to initialize the testing environment, configure DynamoDB, and set up environment variables.
/// <summary>
/// The base class for API testing, providing utilities for setting up and interacting with the API.
/// </summary>
private static ApiTestBase<Program> _apiTestBase = null!;
protected static HttpClient Client { get; private set; } = null!;
private static readonly IDynamoDbService DynamoDbService = DynamoDbServiceFactory.Create();
[AssemblyInitialize]
public static async Task AssemblyInitializeAsync(TestContext _)
{
// 0. Ensure that previous tests were not interrupted
await AssemblyCleanupAsync().ConfigureAwait(false);
// 1. Setup DynamoDB service
await DynamoDbService.SetupAsync<Program>().ConfigureAwait(false);
// 2. Load environment variables
var environmentVariables = EmbeddedFile.GetFileContentFrom("Properties.EnvironmentVariables.json")
.FromJsonStringAs<Dictionary<string, string>>()
.Select(keyValue => (keyValue.Key, keyValue.Value)).ToArray();
// 3. Setup API test base environment
_apiTestBase = new ApiTestBase<Program>("Development", // The environment name
(_, _) =>
{
}, // Register services action
environmentVariables); // Configure environment variables
// Additional setup logic can be added here
}
The package includes utilities to set up a Docker container with AWS DynamoDB to simulate a real database environment for testing.
// Factory creation
// Sample code for running DynamoDB in a Docker container
var DynamoDbService = DynamoDbServiceFactory.Create();
// Via service collection
serviceCollection.AddDynamoDbService();
Feel free to open issues or submit pull requests. If you are interested in contributing, please ensure to follow the coding standards and best practices used in this repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.5.6 | 43 | 6/17/2026 |
| 7.5.5 | 15 | 6/17/2026 |
| 7.5.4 | 15 | 6/17/2026 |
| 7.5.3 | 123 | 6/17/2026 |
| 7.5.2 | 44 | 6/16/2026 |
| 7.5.1 | 2,641 | 6/2/2026 |
| 7.5.0 | 117 | 5/12/2026 |
| 7.5.0-alpha.16 | 57 | 5/18/2026 |
| 7.5.0-alpha.15 | 54 | 5/18/2026 |
| 7.5.0-alpha.12 | 50 | 5/12/2026 |
| 7.5.0-alpha.11 | 51 | 5/12/2026 |
| 7.5.0-alpha.10 | 50 | 5/12/2026 |
| 7.5.0-alpha.3 | 64 | 5/11/2026 |
| 7.4.6 | 27 | 6/2/2026 |
| 7.4.5 | 538 | 5/24/2026 |
| 7.4.4 | 32 | 5/18/2026 |
| 7.4.3 | 36 | 5/18/2026 |
| 7.4.2 | 2,465 | 5/11/2026 |
| 7.4.1 | 36 | 5/11/2026 |
| 7.4.0 | 5,855 | 5/6/2026 |