CodeDesignPlus.Net.xUnit
1.0.0-beta.13683
dotnet add package CodeDesignPlus.Net.xUnit --version 1.0.0-beta.13683
NuGet\Install-Package CodeDesignPlus.Net.xUnit -Version 1.0.0-beta.13683
<PackageReference Include="CodeDesignPlus.Net.xUnit" Version="1.0.0-beta.13683" />
<PackageVersion Include="CodeDesignPlus.Net.xUnit" Version="1.0.0-beta.13683" />
<PackageReference Include="CodeDesignPlus.Net.xUnit" />
paket add CodeDesignPlus.Net.xUnit --version 1.0.0-beta.13683
#r "nuget: CodeDesignPlus.Net.xUnit, 1.0.0-beta.13683"
#:package CodeDesignPlus.Net.xUnit@1.0.0-beta.13683
#addin nuget:?package=CodeDesignPlus.Net.xUnit&version=1.0.0-beta.13683&prerelease
#tool nuget:?package=CodeDesignPlus.Net.xUnit&version=1.0.0-beta.13683&prerelease
CodeDesignPlus.Net.xUnit
Description
The CodeDesignPlus.Net.xUnit project provides a set of helper classes and tools for managing Docker containers for various services commonly used in integration testing. It leverages Docker Compose to streamline the setup and teardown of these services, ensuring a consistent and isolated test environment.
Table of Contents
About The Project
The CodeDesignPlus.Net.xUnit project provides a set of helper classes and tools for managing Docker containers for various services commonly used in integration testing. It leverages Docker Compose to streamline the setup and teardown of these services, ensuring a consistent and isolated test environment.
Key Features
- SQL Server Container: Manages a Docker container for SQL Server, including configuration and port settings.
- MongoDB Container: Manages a Docker container for MongoDB with Docker Compose configurations.
- Kafka Container: Sets up a Kafka container, including dynamic port allocation and environment configurations.
- Vault Container: Handles a Docker container for Vault, including credential management and service initialization.
- Redis Container: Manages a Redis container and provides options for instances with and without PFX passwords.
- In-Memory Exporters: Provides in-memory exporters for tracing activities, log records, and metrics for testing purposes.
Installation
To install the package, run the following command:
dotnet add package CodeDesignPlus.Net.xUnit
Usage
For more information regarding the library, you can visit our documentation at CodeDesignPlus Doc
Un DTO que se cachea vuelve igual que entró
CacheContract reproduce cómo deserializa el cache (Newtonsoft por defecto) y lista toda propiedad alcanzable desde un
DTO que se escribe pero no vuelve: set privado fuera del constructor que Newtonsoft elige, o un tipo que no sabe
construir. En cada micro basta una prueba sobre todos los IDtoBase de la capa de aplicación:
[Fact]
public void FindLostPropertiesInDtos_ApplicationLayer_LosesNothing()
{
// Act
var lost = CacheContract.FindLostPropertiesInDtos(typeof(EmailsDto).Assembly);
// Assert
Assert.Empty(lost);
}
CacheContract.RoundTrip(dto) hace la ida y vuelta real, para fijar con datos el caso que se perdió.
Roadmap
Refer to issues for a list of proposed features and known issues.
Roadmap
- Fork the Project
- Create your Feature Branch (git checkout -b features/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
CodeDesignPlus - @CodeDesignPlus - wliscano@codedesignplus.com
Project Link: CodeDesignPlus.Net.xUnit
| 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
- CodeDesignPlus.Net.Redis (>= 1.0.0-beta.13683)
- Ductus.FluentDocker.XUnit (>= 2.83.0)
- Grpc.Core.Testing (>= 2.46.6)
- Microsoft.Extensions.Configuration.Json (>= 9.0.7)
- Microsoft.Extensions.DependencyInjection (>= 9.0.7)
- Microsoft.Extensions.Logging (>= 9.0.7)
- Microsoft.Extensions.Logging.Console (>= 9.0.7)
- Microsoft.Extensions.Options (>= 9.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.7)
- Microsoft.Extensions.Options.DataAnnotations (>= 9.0.7)
- Moq (>= 4.20.72)
- OpenTelemetry (>= 1.12.0)
- xunit (>= 2.9.3)
- xunit.abstractions (>= 2.0.3)
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 |
|---|---|---|
| 1.0.0-beta.13683 | 39 | 10/15/2026 |