Encamina.Enmarcha.Testing
10.0.2
dotnet add package Encamina.Enmarcha.Testing --version 10.0.2
NuGet\Install-Package Encamina.Enmarcha.Testing -Version 10.0.2
<PackageReference Include="Encamina.Enmarcha.Testing" Version="10.0.2" />
<PackageVersion Include="Encamina.Enmarcha.Testing" Version="10.0.2" />
<PackageReference Include="Encamina.Enmarcha.Testing" />
paket add Encamina.Enmarcha.Testing --version 10.0.2
#r "nuget: Encamina.Enmarcha.Testing, 10.0.2"
#:package Encamina.Enmarcha.Testing@10.0.2
#addin nuget:?package=Encamina.Enmarcha.Testing&version=10.0.2
#tool nuget:?package=Encamina.Enmarcha.Testing&version=10.0.2
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 (>= 10.0.1)
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 |