DataPreparation 1.0.0
See the version list below for details.
dotnet add package DataPreparation --version 1.0.0
NuGet\Install-Package DataPreparation -Version 1.0.0
<PackageReference Include="DataPreparation" Version="1.0.0" />
<PackageVersion Include="DataPreparation" Version="1.0.0" />
<PackageReference Include="DataPreparation" />
paket add DataPreparation --version 1.0.0
#r "nuget: DataPreparation, 1.0.0"
#:package DataPreparation@1.0.0
#addin nuget:?package=DataPreparation&version=1.0.0
#tool nuget:?package=DataPreparation&version=1.0.0
DataPreparation
A C# NUnit Extension library designed to simplify test data preparation and management for your unit tests.
Overview
DataPreparation is a specialized NUnit extension that provides a structured approach to setting up test data. Unlike other libraries like AutoFixture, DataPreparation focuses on giving developers precise control over how test data is prepared while reducing boilerplate code.
Key Features
- Streamlined approach to preparing test data
- Seamless integration with NUnit test framework
- Reduced test data setup complexity
- Support for various data preparation scenarios
- Minimal configuration requirements
Installation
Install the package via NuGet Package Manager:
Install-Package DataPreparation
Or via .NET CLI:
dotnet add package DataPreparation
Project Structure
The repository consists of two main components:
- DataPreparation: The core library containing the implementation of the NUnit extension
- Examples: Sample projects demonstrating how to use the library in real-world scenarios
Usage
For detailed examples on how to use DataPreparation in your tests, please refer to the Examples directory in this repository. The examples demonstrate various scenarios and patterns for test data preparation using this extension.
Benefits
- Cleaner Test Code: Remove cluttered data setup logic from your tests
- Reusability: Define data preparation patterns once and reuse them across multiple tests
- Maintainability: Changes to your data model only require updates in one place
- Readability: Make your tests more focused on behavior rather than data setup
Getting Started
To get started with DataPreparation:
- Install the NuGet package in your test project
- Familiarize yourself with the examples provided in the Examples directory
- Implement the extension in your test classes
- Run your tests using the NUnit test runner
Documentation
For more detailed documentation on how to use this library, please refer to the inline code documentation and the examples provided.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
-
net8.0
- Microsoft.CodeAnalysis.CSharp (>= 4.12.0-2.final)
- Microsoft.Extensions.DependencyInjection (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- Mono.Cecil (>= 0.11.6)
- NUnit (>= 3.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.