RimuTec.Faker 0.4.0

A library that helps authoring tests by providing generators for fake data such as names, phone numbers, job titles, etc.

There is a newer version of this package available.
See the version list below for details.
Install-Package RimuTec.Faker -Version 0.4.0
dotnet add package RimuTec.Faker --version 0.4.0
<PackageReference Include="RimuTec.Faker" Version="0.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RimuTec.Faker --version 0.4.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

Available Fake Data Generators

Job

  • KeySkill()
  • Title()

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

Available Fake Data Generators

Job

  • KeySkill()
  • Title()

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 273 8/5/2018
0.39.0 189 7/29/2018
0.38.0 176 7/27/2018
0.37.0 180 7/26/2018
0.36.0 176 7/25/2018
0.35.0 169 7/24/2018
0.34.0 185 7/23/2018
0.33.0 189 7/22/2018
0.32.0 199 7/17/2018
0.31.0 216 7/17/2018
0.30.0 194 7/15/2018
0.29.0 218 7/14/2018
0.28.0 221 7/13/2018
0.27.0 199 7/12/2018
0.26.0 213 7/11/2018
0.25.0 219 7/10/2018
0.24.0 220 7/9/2018
0.23.0 220 7/8/2018
0.22.0 178 7/7/2018
0.21.0 202 7/6/2018
0.20.0 219 7/5/2018
0.19.0 217 7/4/2018
0.18.0 229 7/4/2018
0.17.0 208 7/2/2018
0.16.0 232 7/1/2018
0.15.0 234 6/30/2018
0.14.0 187 6/29/2018
0.13.0 184 6/28/2018
0.12.0 228 6/27/2018
0.11.0 232 6/26/2018
0.10.0 206 6/25/2018
0.9.0 240 6/24/2018
0.8.0 221 6/23/2018
0.7.0 221 6/22/2018
0.6.0 280 6/21/2018
0.5.0 230 6/20/2018
0.4.0 222 6/20/2018
0.3.0 225 6/19/2018
0.2.0 221 6/19/2018
0.1.0 208 6/18/2018
Show less