CodeDesignPlus.Net.xUnit 1.0.0-beta.13683

This is a prerelease version of CodeDesignPlus.Net.xUnit.
dotnet add package CodeDesignPlus.Net.xUnit --version 1.0.0-beta.13683
                    
NuGet\Install-Package CodeDesignPlus.Net.xUnit -Version 1.0.0-beta.13683
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeDesignPlus.Net.xUnit" Version="1.0.0-beta.13683" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeDesignPlus.Net.xUnit" Version="1.0.0-beta.13683" />
                    
Directory.Packages.props
<PackageReference Include="CodeDesignPlus.Net.xUnit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeDesignPlus.Net.xUnit --version 1.0.0-beta.13683
                    
#r "nuget: CodeDesignPlus.Net.xUnit, 1.0.0-beta.13683"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeDesignPlus.Net.xUnit@1.0.0-beta.13683
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeDesignPlus.Net.xUnit&version=1.0.0-beta.13683&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CodeDesignPlus.Net.xUnit&version=1.0.0-beta.13683&prerelease
                    
Install as a Cake Tool

CodeDesignPlus.Net.xUnit

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%) Vulnerabilities

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

  1. SQL Server Container: Manages a Docker container for SQL Server, including configuration and port settings.
  2. MongoDB Container: Manages a Docker container for MongoDB with Docker Compose configurations.
  3. Kafka Container: Sets up a Kafka container, including dynamic port allocation and environment configurations.
  4. Vault Container: Handles a Docker container for Vault, including credential management and service initialization.
  5. Redis Container: Manages a Redis container and provides options for instances with and without PFX passwords.
  6. 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

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b features/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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