RimuTec.Faker 0.5.0

A library that helps authoring tests by providing generators for fake data such as names, phone numbers, job titles, etc. This libary is a C# port of the Ruby Faker gem https://github.com/stympy/faker

There is a newer version of this package available.
See the version list below for details.
Install-Package RimuTec.Faker -Version 0.5.0
dotnet add package RimuTec.Faker --version 0.5.0
<PackageReference Include="RimuTec.Faker" Version="0.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RimuTec.Faker --version 0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Faker

A C# port of the Ruby Faker gem https://github.com/stympy/faker.

The RimuTec.Faker targets .NET Standard 2.0 (netstandard2.0) and .NET Framework 4.6.2 (net462).

Available Fake Data Generators

Job

  • Title()
  • Field()
  • Seniority()
  • Position()
  • KeySkill()
  • EmploymentType()
  • EducationLevel()

Lorem

  • Words(int count)
  • GetFirstWord()
  • Sentence(int minWordCount)
  • Sentences(int sentenceCount)
  • Paragraph(int minSentenceCount)
  • Paragraphs(int paragraphCount)

Name

  • FullName() (equivalent to Ruby's Faker::Name.name)
  • NameWithMiddle()
  • FirstName()
  • MiddleName()
  • LastName()
  • Prefix()
  • Suffix()
  • Initials(int characterCount)

PhoneNumber

  • CellPhone()

RandomNumber

  • ResetSeed(int seed)
  • Next()
  • Next(int maxValue)
  • Next(int minValue, int maxValue)

Usage

Installation

This library is available as NuGet package at https://www.nuget.org/packages/RimuTec.Faker

The source code and the library are available under MIT license. This means you can use this libary and/or the source for free in your own projects, including closed-source and commercial projects. Terms and conditions are as per the MIT license in this project.

Generating Fake Data

  1. Install NuGet package. See https://www.nuget.org/packages/RimuTec.Faker for instructions
  2. Add using RimuTec.Faker; at the beginning of your C# source file (or the equivalent for your preferred .NET language)
  3. Generate fake data, e.g. var firstName = Name.NameWithMiddle();

In case of name clashes with other classes in your code base, use one of the following techniques in C# source files:

  1. use fully qualify names, e.g. var firstName = RimuTec.Faker.Name.NameWithMiddle();. Use this if there are only a couple of occurances.
  2. add using NameFaker = RimuTec.Faker.Name; at the beginning of the file and then var firstName = NameFaker.NameWithMiddle();. Use this option if you have many usages within the source file.

Release Notes

Release notes are available at https://github.com/RimuTec/Faker/blob/master/releasenotes.md

Credits

The project uses some portions of the source code of https://github.com/slashdotdash/faker-cs under a MIT license.

This project also uses the yaml files of the Ruby Faker gem from https://github.com/stympy/faker under a MIT license.

Faker

A C# port of the Ruby Faker gem https://github.com/stympy/faker.

The RimuTec.Faker targets .NET Standard 2.0 (netstandard2.0) and .NET Framework 4.6.2 (net462).

Available Fake Data Generators

Job

  • Title()
  • Field()
  • Seniority()
  • Position()
  • KeySkill()
  • EmploymentType()
  • EducationLevel()

Lorem

  • Words(int count)
  • GetFirstWord()
  • Sentence(int minWordCount)
  • Sentences(int sentenceCount)
  • Paragraph(int minSentenceCount)
  • Paragraphs(int paragraphCount)

Name

  • FullName() (equivalent to Ruby's Faker::Name.name)
  • NameWithMiddle()
  • FirstName()
  • MiddleName()
  • LastName()
  • Prefix()
  • Suffix()
  • Initials(int characterCount)

PhoneNumber

  • CellPhone()

RandomNumber

  • ResetSeed(int seed)
  • Next()
  • Next(int maxValue)
  • Next(int minValue, int maxValue)

Usage

Installation

This library is available as NuGet package at https://www.nuget.org/packages/RimuTec.Faker

The source code and the library are available under MIT license. This means you can use this libary and/or the source for free in your own projects, including closed-source and commercial projects. Terms and conditions are as per the MIT license in this project.

Generating Fake Data

  1. Install NuGet package. See https://www.nuget.org/packages/RimuTec.Faker for instructions
  2. Add using RimuTec.Faker; at the beginning of your C# source file (or the equivalent for your preferred .NET language)
  3. Generate fake data, e.g. var firstName = Name.NameWithMiddle();

In case of name clashes with other classes in your code base, use one of the following techniques in C# source files:

  1. use fully qualify names, e.g. var firstName = RimuTec.Faker.Name.NameWithMiddle();. Use this if there are only a couple of occurances.
  2. add using NameFaker = RimuTec.Faker.Name; at the beginning of the file and then var firstName = NameFaker.NameWithMiddle();. Use this option if you have many usages within the source file.

Release Notes

Release notes are available at https://github.com/RimuTec/Faker/blob/master/releasenotes.md

Credits

The project uses some portions of the source code of https://github.com/slashdotdash/faker-cs under a MIT license.

This project also uses the yaml files of the Ruby Faker gem from https://github.com/stympy/faker under a MIT license.

Release Notes

Relase notes are available at https://github.com/RimuTec/Faker/blob/master/releasenotes.md

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.40.0 279 8/5/2018
0.39.0 190 7/29/2018
0.38.0 178 7/27/2018
0.37.0 182 7/26/2018
0.36.0 179 7/25/2018
0.35.0 172 7/24/2018
0.34.0 189 7/23/2018
0.33.0 193 7/22/2018
0.32.0 200 7/17/2018
0.31.0 221 7/17/2018
0.30.0 198 7/15/2018
0.29.0 221 7/14/2018
0.28.0 226 7/13/2018
0.27.0 203 7/12/2018
0.26.0 217 7/11/2018
0.25.0 223 7/10/2018
0.24.0 222 7/9/2018
0.23.0 225 7/8/2018
0.22.0 182 7/7/2018
0.21.0 204 7/6/2018
0.20.0 224 7/5/2018
0.19.0 221 7/4/2018
0.18.0 232 7/4/2018
0.17.0 210 7/2/2018
0.16.0 234 7/1/2018
0.15.0 236 6/30/2018
0.14.0 191 6/29/2018
0.13.0 186 6/28/2018
0.12.0 230 6/27/2018
0.11.0 235 6/26/2018
0.10.0 209 6/25/2018
0.9.0 242 6/24/2018
0.8.0 223 6/23/2018
0.7.0 223 6/22/2018
0.6.0 282 6/21/2018
0.5.0 233 6/20/2018
0.4.0 224 6/20/2018
0.3.0 228 6/19/2018
0.2.0 223 6/19/2018
0.1.0 210 6/18/2018
Show less