Encamina.Enmarcha.Testing
8.2.1-preview-05
See the version list below for details.
dotnet add package Encamina.Enmarcha.Testing --version 8.2.1-preview-05
NuGet\Install-Package Encamina.Enmarcha.Testing -Version 8.2.1-preview-05
<PackageReference Include="Encamina.Enmarcha.Testing" Version="8.2.1-preview-05" />
<PackageVersion Include="Encamina.Enmarcha.Testing" Version="8.2.1-preview-05" />
<PackageReference Include="Encamina.Enmarcha.Testing" />
paket add Encamina.Enmarcha.Testing --version 8.2.1-preview-05
#r "nuget: Encamina.Enmarcha.Testing, 8.2.1-preview-05"
#:package Encamina.Enmarcha.Testing@8.2.1-preview-05
#addin nuget:?package=Encamina.Enmarcha.Testing&version=8.2.1-preview-05&prerelease
#tool nuget:?package=Encamina.Enmarcha.Testing&version=8.2.1-preview-05&prerelease
Testing
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 | Versions 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. |
-
.NETStandard 2.1
- Bogus (>= 35.6.2)
- CommunityToolkit.Diagnostics (>= 8.4.0)
- Microsoft.Extensions.Options (>= 8.0.2)
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.4 | 85 | 4/8/2026 |
| 10.0.3 | 81 | 4/6/2026 |
| 10.0.2 | 286 | 12/17/2025 |
| 10.0.1 | 281 | 12/17/2025 |
| 10.0.0 | 280 | 12/16/2025 |
| 10.0.0-preview-09 | 408 | 11/19/2025 |
| 10.0.0-preview-08 | 409 | 11/18/2025 |
| 10.0.0-preview-07 | 191 | 10/22/2025 |
| 10.0.0-preview-06 | 190 | 10/14/2025 |
| 10.0.0-preview-05 | 188 | 10/8/2025 |
| 10.0.0-preview-04 | 180 | 10/7/2025 |
| 10.0.0-preview-03 | 324 | 9/16/2025 |
| 10.0.0-preview-02 | 308 | 9/16/2025 |
| 8.3.0 | 209 | 9/10/2025 |
| 8.3.0-preview-02 | 198 | 9/10/2025 |
| 8.3.0-preview-01 | 188 | 9/8/2025 |
| 8.2.1-preview-08 | 192 | 8/18/2025 |
| 8.2.1-preview-07 | 196 | 8/12/2025 |
| 8.2.1-preview-05 | 268 | 8/5/2025 |