Xumiga.DataGenerators
1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Xumiga.DataGenerators --version 1.0.3
NuGet\Install-Package Xumiga.DataGenerators -Version 1.0.3
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="Xumiga.DataGenerators" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xumiga.DataGenerators --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xumiga.DataGenerators, 1.0.3"
#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 Xumiga.DataGenerators as a Cake Addin
#addin nuget:?package=Xumiga.DataGenerators&version=1.0.3
// Install Xumiga.DataGenerators as a Cake Tool
#tool nuget:?package=Xumiga.DataGenerators&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Xumiga Data Generators
My main purpose for this project is to help creating random data for unit tests usage. This is a project that i'm developing as my dailly needs are dictated, but as i decided to meke it public your suggestions are very, very welcome.
Example
using Xumiga.DataGenerators;
namespace Xumiga.DataGenerator.Tests
{
public class MyTestsExamples
{
[Fact]
public void StringGenerator_GetAlphabetic_FixedSize_SUCCESS()
{
int numberOfChars = 32;
// Generate a string with a fixed amount of chars
string generated = StringGenerator.GetAlphabetic(numberOfChars);
// has result
Assert.NotNull(generated);
Assert.NotEmpty(generated);
// correct ammount of chars
Assert.True(generated.Length == numberOfChars);
}
}
}
Random data Generators
- StringGenerator - Generates a random sequences of characters
- WordGenerator - Generates a random sequences of characters like words
- DateTimeGenerator - Generates a random date time
- EmailGenerator - Generates a random email formated string
- HexadecimalGenerator - Generates a random sequences of hexadecimal characters
- IPAddressGenerator - Generates a random ip address
- MACAddressGenerator - Generates a random MAC address
- NIFGenerator - Generates a random valid Portuguese NIF
Documentation is being written...
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. |
.NET Core | netcoreapp1.0 is compatible. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 1.0
- Microsoft.NETCore.App (>= 1.0.5)
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.0.9.63 | 2,333 | 6/6/2022 |
1.0.8.62 | 372 | 6/6/2022 |
1.0.8.61 | 761 | 3/3/2022 |
1.0.8.60 | 383 | 3/3/2022 |
1.0.7.59 | 387 | 3/3/2022 |
1.0.7 | 881 | 11/11/2020 |
1.0.6 | 374 | 10/28/2020 |
1.0.5 | 450 | 5/14/2020 |
1.0.4 | 659 | 1/7/2019 |
1.0.3 | 736 | 8/27/2018 |
1.0.2 | 854 | 8/3/2018 |
1.0.1 | 800 | 7/25/2018 |
1.0.0 | 819 | 7/20/2018 |
Added MAC address generator
Added hexadecimal generator