Encamina.Enmarcha.Testing 8.3.0

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

Testing

Nuget package

This project provides utilities to facilitate testing.

Setup

Nuget package

First, install NuGet. Then, install Encamina.Enmarcha.Testing from the package manager console:

PM> Install-Package Encamina.Enmarcha.Testing

.NET CLI:

Install .NET CLI. Next, install Encamina.Enmarcha.Testing from the .NET CLI:

dotnet add package Encamina.Enmarcha.Testing

How to use

FakeProvider

FakeProvider provides a faker component that replace external dependencies or values in-place to run tests with an expect or particular outcome. This faker provided is powered by Bogus. Although you can instantiate a FakeProvider in your tests, if you are using xUnit, the simplest approach is to use a Collection Fixture and share the FakeProvider across your different test classes. For this purpose, the auxiliary class FakerProviderFixturedBase is provided, which implements the IFakerProviderFixture. Here is a simple example:

[CollectionDefinition(MagicStrings.FixturesCollection)]
public class FixturesCollection : ICollectionFixture<FakerProvider>
{
    // This class has no code, and is never created. Its purpose is simply
    // to be the place to apply [CollectionDefinition] and all the
    // ICollectionFixture<> interfaces.
}

[Collection(MagicStrings.FixturesCollection)]
public class TestClass1 : FakerProviderFixturedBase
{
    public TestClass1(FakerProvider fakerFixture) : base(fakerFixture)
    {        
    }

    [Fact]
    public void DummyTest()
    {
        // ...
        var faker = FakerProvider.GetFaker();
        // faker.Address

        // ...
    }
}

[Collection(MagicStrings.FixturesCollection)]
public class TestClass2 : FakerProviderFixturedBase
{
    public TestClass2(FakerProvider fakerFixture) : base(fakerFixture)
    {        
    }

     [Fact]
    public void OtherDummyTest()
    {
        // ...
        var faker = FakerProvider.GetFaker();
        // faker.Company

        // ...
    }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
10.0.2 273 12/17/2025
10.0.1 267 12/17/2025
10.0.0 264 12/16/2025
10.0.0-preview-09 397 11/19/2025
10.0.0-preview-08 398 11/18/2025
10.0.0-preview-07 180 10/22/2025
10.0.0-preview-06 181 10/14/2025
10.0.0-preview-05 179 10/8/2025
10.0.0-preview-04 170 10/7/2025
10.0.0-preview-03 315 9/16/2025
10.0.0-preview-02 302 9/16/2025
8.3.0 194 9/10/2025
8.3.0-preview-02 191 9/10/2025
8.3.0-preview-01 180 9/8/2025
8.2.1-preview-08 183 8/18/2025
8.2.1-preview-07 185 8/12/2025
8.2.1-preview-06 177 8/11/2025
8.2.1-preview-05 256 8/5/2025
8.2.1-preview-04 156 7/15/2025
Loading failed