DataPreparation 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DataPreparation --version 1.0.0
                    
NuGet\Install-Package DataPreparation -Version 1.0.0
                    
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="DataPreparation" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DataPreparation" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DataPreparation" />
                    
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 DataPreparation --version 1.0.0
                    
#r "nuget: DataPreparation, 1.0.0"
                    
#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 DataPreparation@1.0.0
                    
#: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=DataPreparation&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DataPreparation&version=1.0.0
                    
Install as a Cake Tool

DataPreparation

NuGet License

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:

  1. Install the NuGet package in your test project
  2. Familiarize yourself with the examples provided in the Examples directory
  3. Implement the extension in your test classes
  4. 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product 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. 
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.1.0 217 5/14/2025
1.0.2 93 4/26/2025
1.0.1 152 4/7/2025
1.0.0 128 3/30/2025