Content-Length: 297026 | pFad | http://github.com/exceptionless/Exceptionless.RandomData

49 GitHub - exceptionless/Exceptionless.RandomData: Utility class to easily generate random data.
Skip to content

exceptionless/Exceptionless.RandomData

Repository files navigation

Exceptionless.RandomData

Build status NuGet Version Discord Donate

Utility class to easily generate random data. This makes generating good unit test data a breeze!

Getting Started (Development)

This package can be installed via the NuGet package manager. If you need help, please contact us via in-app support or open an issue. We’re always here to help if you have any questions!

  1. You will need to have Visual Studio Code installed.
  2. Open the root folder.

Using RandomData

Below is a small sample of what you can do, so check it out!

private int[] _numbers = new[] { 1, 2, 3, 4, 5 };

private enum _days {
    Monday,
    Tuesday
}

int value = RandomData.GetInt(1, 5);
// or
value = _numbers.Random();

var day = RandomData.GetEnum<_days>();

Thanks to all the people who have contributed

contributors

Sponsor this project

 

Packages

 
 
 

Contributors 6

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/exceptionless/Exceptionless.RandomData

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy