Encamina.Enmarcha.Testing 8.1.6

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

// Install Encamina.Enmarcha.Testing as a Cake Tool
#tool nuget:?package=Encamina.Enmarcha.Testing&version=8.1.6

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. 
.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
8.1.7-preview-03 68 5/24/2024
8.1.7-preview-02 55 5/10/2024
8.1.7-preview-01 72 5/8/2024
8.1.6 92 5/7/2024
8.1.6-preview-08 35 5/2/2024
8.1.6-preview-07 69 4/29/2024
8.1.6-preview-06 77 4/26/2024
8.1.6-preview-05 74 4/24/2024
8.1.6-preview-04 61 4/22/2024
8.1.6-preview-03 65 4/22/2024
8.1.6-preview-02 66 4/17/2024
8.1.6-preview-01 85 4/15/2024
8.1.5 94 4/15/2024
8.1.5-preview-15 78 4/10/2024
8.1.5-preview-14 78 3/20/2024
8.1.5-preview-13 61 3/18/2024
8.1.5-preview-12 80 3/13/2024
8.1.5-preview-11 68 3/13/2024
8.1.5-preview-10 87 3/13/2024
8.1.5-preview-09 78 3/12/2024
8.1.5-preview-08 70 3/12/2024
8.1.5-preview-07 77 3/8/2024
8.1.5-preview-06 52 3/8/2024
8.1.5-preview-05 72 3/7/2024
8.1.5-preview-04 63 3/7/2024
8.1.5-preview-03 74 3/7/2024
8.1.5-preview-02 68 2/28/2024
8.1.5-preview-01 85 2/19/2024
8.1.4 106 2/15/2024
8.1.3 104 2/13/2024
8.1.3-preview-07 67 2/13/2024
8.1.3-preview-06 67 2/12/2024
8.1.3-preview-05 65 2/9/2024
8.1.3-preview-04 53 2/8/2024
8.1.3-preview-03 68 2/7/2024
8.1.3-preview-02 65 2/2/2024
8.1.3-preview-01 68 2/2/2024
8.1.2 91 2/1/2024
8.1.2-preview-9 73 1/22/2024
8.1.2-preview-8 62 1/19/2024
8.1.2-preview-7 62 1/19/2024
8.1.2-preview-6 53 1/19/2024
8.1.2-preview-5 61 1/19/2024
8.1.2-preview-4 57 1/19/2024
8.1.2-preview-3 60 1/18/2024
8.1.2-preview-2 62 1/18/2024
8.1.2-preview-16 53 1/31/2024
8.1.2-preview-15 63 1/31/2024
8.1.2-preview-14 72 1/25/2024
8.1.2-preview-13 63 1/25/2024
8.1.2-preview-12 63 1/23/2024
8.1.2-preview-11 62 1/23/2024
8.1.2-preview-10 63 1/22/2024
8.1.2-preview-1 61 1/18/2024
8.1.1 98 1/18/2024
8.1.0 77 1/18/2024
8.0.3 113 12/29/2023
8.0.1 106 12/14/2023
8.0.0 105 12/7/2023
6.0.4.3 89 12/29/2023
6.0.4.2 96 12/20/2023
6.0.4.1 77 12/19/2023
6.0.4 115 12/4/2023
6.0.3.20 93 11/27/2023
6.0.3.19 107 11/22/2023