Siemens.AspNet.MsTest.Sdk
0.1.0-alpha.97
Prefix Reserved
See the version list below for details.
dotnet add package Siemens.AspNet.MsTest.Sdk --version 0.1.0-alpha.97
NuGet\Install-Package Siemens.AspNet.MsTest.Sdk -Version 0.1.0-alpha.97
<PackageReference Include="Siemens.AspNet.MsTest.Sdk" Version="0.1.0-alpha.97" />
<PackageVersion Include="Siemens.AspNet.MsTest.Sdk" Version="0.1.0-alpha.97" />
<PackageReference Include="Siemens.AspNet.MsTest.Sdk" />
paket add Siemens.AspNet.MsTest.Sdk --version 0.1.0-alpha.97
#r "nuget: Siemens.AspNet.MsTest.Sdk, 0.1.0-alpha.97"
#:package Siemens.AspNet.MsTest.Sdk@0.1.0-alpha.97
#addin nuget:?package=Siemens.AspNet.MsTest.Sdk&version=0.1.0-alpha.97&prerelease
#tool nuget:?package=Siemens.AspNet.MsTest.Sdk&version=0.1.0-alpha.97&prerelease
Siemens.AspNet.MsTest.Sdk
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.
Features
- DynamoDB Helper: Set up and interact with AWS DynamoDB in a Docker container.
- Docker Helper: Spin up Docker containers for AWS DynamoDB.
- API Test Utilities: Provides utilities for setting up API testing environments, including the configuration of environment variables.
- Support for Multiple Environments: Easily configure testing environments, such as Development, Staging, or Production, with environment variables.
Installation
You can install this package using the following NuGet command:
dotnet add package Siemens.AspNet.MsTest.Sdk
Setup Example
API Test Base Setup
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
}
DynamoDB Docker Setup
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();
Contributing
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 | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- DotNetTool.Service (>= 0.3.0)
- MSTest.TestFramework (>= 3.8.3)
- Polly (>= 8.5.2)
- Siemens.AspNet.MinimalApi.Sdk (>= 0.1.0-alpha.48)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.309 | 103 | 10/31/2025 |
| 0.1.0-alpha.307 | 88 | 10/31/2025 |
| 0.1.0-alpha.306 | 89 | 10/31/2025 |
| 0.1.0-alpha.305 | 134 | 10/27/2025 |
| 0.1.0-alpha.303 | 452 | 10/22/2025 |
| 0.1.0-alpha.302 | 118 | 10/21/2025 |
| 0.1.0-alpha.301 | 111 | 10/21/2025 |
| 0.1.0-alpha.300 | 179 | 10/20/2025 |
| 0.1.0-alpha.299 | 80 | 10/18/2025 |
| 0.1.0-alpha.298 | 64 | 10/18/2025 |
| 0.1.0-alpha.297 | 60 | 10/18/2025 |
| 0.1.0-alpha.296 | 64 | 10/18/2025 |
| 0.1.0-alpha.294 | 85 | 10/17/2025 |
| 0.1.0-alpha.293 | 210 | 10/8/2025 |
| 0.1.0-alpha.292 | 119 | 10/8/2025 |
| 0.1.0-alpha.290 | 130 | 10/8/2025 |
| 0.1.0-alpha.289 | 121 | 10/7/2025 |
| 0.1.0-alpha.284 | 129 | 10/7/2025 |
| 0.1.0-alpha.283 | 252 | 9/19/2025 |
| 0.1.0-alpha.282 | 615 | 9/19/2025 |
| 0.1.0-alpha.281 | 303 | 9/16/2025 |
| 0.1.0-alpha.280 | 255 | 9/16/2025 |
| 0.1.0-alpha.279 | 257 | 9/16/2025 |
| 0.1.0-alpha.278 | 257 | 9/16/2025 |
| 0.1.0-alpha.275 | 36,290 | 9/3/2025 |
| 0.1.0-alpha.274 | 342 | 9/2/2025 |
| 0.1.0-alpha.273 | 355 | 9/1/2025 |
| 0.1.0-alpha.272 | 119 | 9/1/2025 |
| 0.1.0-alpha.271 | 178 | 8/29/2025 |
| 0.1.0-alpha.270 | 157 | 8/29/2025 |
| 0.1.0-alpha.269 | 157 | 8/29/2025 |
| 0.1.0-alpha.268 | 165 | 8/29/2025 |
| 0.1.0-alpha.267 | 167 | 8/27/2025 |
| 0.1.0-alpha.266 | 185 | 8/27/2025 |
| 0.1.0-alpha.264 | 249 | 8/22/2025 |
| 0.1.0-alpha.263 | 76 | 8/22/2025 |
| 0.1.0-alpha.262 | 82 | 8/22/2025 |
| 0.1.0-alpha.261 | 96 | 8/22/2025 |
| 0.1.0-alpha.260 | 104 | 8/22/2025 |
| 0.1.0-alpha.259 | 99 | 8/22/2025 |
| 0.1.0-alpha.258 | 197 | 8/19/2025 |
| 0.1.0-alpha.257 | 192 | 8/18/2025 |
| 0.1.0-alpha.246 | 155 | 8/14/2025 |
| 0.1.0-alpha.245 | 126 | 8/14/2025 |
| 0.1.0-alpha.244 | 161 | 8/14/2025 |
| 0.1.0-alpha.243 | 128 | 8/14/2025 |
| 0.1.0-alpha.238 | 127 | 8/12/2025 |
| 0.1.0-alpha.237 | 447 | 8/6/2025 |
| 0.1.0-alpha.236 | 234 | 8/5/2025 |
| 0.1.0-alpha.235 | 205 | 8/5/2025 |
| 0.1.0-alpha.234 | 206 | 8/5/2025 |
| 0.1.0-alpha.233 | 167 | 8/4/2025 |
| 0.1.0-alpha.232 | 180 | 8/4/2025 |
| 0.1.0-alpha.231 | 77 | 8/1/2025 |
| 0.1.0-alpha.230 | 76 | 8/1/2025 |
| 0.1.0-alpha.229 | 96 | 7/31/2025 |
| 0.1.0-alpha.228 | 96 | 7/31/2025 |
| 0.1.0-alpha.227 | 101 | 7/31/2025 |
| 0.1.0-alpha.225 | 97 | 7/31/2025 |
| 0.1.0-alpha.224 | 101 | 7/30/2025 |
| 0.1.0-alpha.222 | 292 | 7/16/2025 |
| 0.1.0-alpha.219 | 166 | 7/14/2025 |
| 0.1.0-alpha.217 | 93 | 7/11/2025 |
| 0.1.0-alpha.212 | 162 | 7/8/2025 |
| 0.1.0-alpha.211 | 173 | 7/3/2025 |
| 0.1.0-alpha.207 | 121 | 7/3/2025 |
| 0.1.0-alpha.206 | 285 | 6/30/2025 |
| 0.1.0-alpha.205 | 110 | 6/27/2025 |
| 0.1.0-alpha.202 | 103 | 6/27/2025 |
| 0.1.0-alpha.200 | 107 | 6/27/2025 |
| 0.1.0-alpha.198 | 107 | 6/27/2025 |
| 0.1.0-alpha.196 | 110 | 6/27/2025 |
| 0.1.0-alpha.195 | 110 | 6/27/2025 |
| 0.1.0-alpha.194 | 106 | 6/27/2025 |
| 0.1.0-alpha.193 | 102 | 6/27/2025 |
| 0.1.0-alpha.192 | 110 | 6/27/2025 |
| 0.1.0-alpha.191 | 104 | 6/27/2025 |
| 0.1.0-alpha.189 | 120 | 6/26/2025 |
| 0.1.0-alpha.188 | 202 | 6/26/2025 |
| 0.1.0-alpha.187 | 125 | 6/26/2025 |
| 0.1.0-alpha.186 | 141 | 6/26/2025 |
| 0.1.0-alpha.185 | 126 | 6/26/2025 |
| 0.1.0-alpha.184 | 124 | 6/26/2025 |
| 0.1.0-alpha.183 | 124 | 6/26/2025 |
| 0.1.0-alpha.182 | 120 | 6/26/2025 |
| 0.1.0-alpha.181 | 135 | 6/25/2025 |
| 0.1.0-alpha.180 | 129 | 6/24/2025 |
| 0.1.0-alpha.179 | 127 | 6/23/2025 |
| 0.1.0-alpha.178 | 201 | 6/23/2025 |
| 0.1.0-alpha.176 | 127 | 6/23/2025 |
| 0.1.0-alpha.174 | 131 | 6/19/2025 |
| 0.1.0-alpha.173 | 163 | 6/19/2025 |
| 0.1.0-alpha.172 | 126 | 6/17/2025 |
| 0.1.0-alpha.171 | 202 | 6/16/2025 |
| 0.1.0-alpha.169 | 128 | 6/16/2025 |
| 0.1.0-alpha.165 | 415 | 6/13/2025 |
| 0.1.0-alpha.164 | 237 | 6/13/2025 |
| 0.1.0-alpha.163 | 238 | 6/13/2025 |
| 0.1.0-alpha.160 | 277 | 6/12/2025 |
| 0.1.0-alpha.159 | 368 | 6/11/2025 |
| 0.1.0-alpha.158 | 273 | 6/11/2025 |
| 0.1.0-alpha.143 | 265 | 6/11/2025 |
| 0.1.0-alpha.142 | 271 | 6/11/2025 |
| 0.1.0-alpha.140 | 272 | 6/11/2025 |
| 0.1.0-alpha.139 | 325 | 6/10/2025 |
| 0.1.0-alpha.138 | 265 | 6/9/2025 |
| 0.1.0-alpha.137 | 61 | 6/7/2025 |
| 0.1.0-alpha.136 | 55 | 6/7/2025 |
| 0.1.0-alpha.135 | 84 | 6/6/2025 |
| 0.1.0-alpha.134 | 83 | 6/6/2025 |
| 0.1.0-alpha.130 | 124 | 6/5/2025 |
| 0.1.0-alpha.129 | 132 | 6/4/2025 |
| 0.1.0-alpha.128 | 116 | 6/4/2025 |
| 0.1.0-alpha.122 | 191 | 6/3/2025 |
| 0.1.0-alpha.121 | 129 | 6/1/2025 |
| 0.1.0-alpha.120 | 96 | 6/1/2025 |
| 0.1.0-alpha.118 | 130 | 5/28/2025 |
| 0.1.0-alpha.117 | 128 | 5/28/2025 |
| 0.1.0-alpha.116 | 132 | 5/28/2025 |
| 0.1.0-alpha.115 | 137 | 5/26/2025 |
| 0.1.0-alpha.114 | 163 | 5/22/2025 |
| 0.1.0-alpha.112 | 131 | 5/21/2025 |
| 0.1.0-alpha.111 | 134 | 5/20/2025 |
| 0.1.0-alpha.108 | 187 | 5/19/2025 |
| 0.1.0-alpha.104 | 200 | 5/18/2025 |
| 0.1.0-alpha.102 | 295 | 5/14/2025 |
| 0.1.0-alpha.101 | 209 | 5/14/2025 |
| 0.1.0-alpha.100 | 215 | 5/12/2025 |
| 0.1.0-alpha.99 | 243 | 5/12/2025 |
| 0.1.0-alpha.98 | 55 | 5/10/2025 |
| 0.1.0-alpha.97 | 60 | 5/10/2025 |
| 0.1.0-alpha.86 | 147 | 5/8/2025 |
| 0.1.0-alpha.85 | 134 | 5/8/2025 |
| 0.1.0-alpha.84 | 126 | 5/8/2025 |
| 0.1.0-alpha.82 | 140 | 5/7/2025 |
| 0.1.0-alpha.81 | 135 | 5/6/2025 |
| 0.1.0-alpha.76 | 64 | 5/3/2025 |
| 0.1.0-alpha.75 | 94 | 5/2/2025 |
| 0.1.0-alpha.74 | 84 | 5/2/2025 |
| 0.1.0-alpha.56 | 140 | 4/28/2025 |
| 0.1.0-alpha.55 | 146 | 4/28/2025 |
| 0.1.0-alpha.54 | 211 | 4/14/2025 |
| 0.1.0-alpha.53 | 194 | 4/14/2025 |
| 0.1.0-alpha.48 | 227 | 4/14/2025 |
| 0.1.0-alpha.47 | 173 | 4/9/2025 |
| 0.1.0-alpha.46 | 145 | 4/9/2025 |
| 0.1.0-alpha.44 | 156 | 4/7/2025 |
| 0.1.0-alpha.41 | 146 | 4/7/2025 |
| 0.1.0-alpha.40 | 143 | 4/7/2025 |
| 0.1.0-alpha.39 | 88 | 4/4/2025 |
| 0.1.0-alpha.38 | 103 | 4/4/2025 |
| 0.1.0-alpha.37 | 145 | 4/4/2025 |