Coder Social home page Coder Social logo

mockingdata's Introduction

Mocking Data Generator for .NET and .NET core

The Mocking Data library is a structured localized random generator for .NET (4.5 or greater) and .NET Core (.NET Standard 1.4 or greater). It is made to help you create realistic simulation data with focus on persons/users/customers and settings related to them.

In the centre of the library you have a Person generator that generates Person objects. Each object has a number of properties that are randomly generated as you access them. Most of the data is localized so if a person is randomly selected US as country, then on the state level it will be one of the states in the US and on the city level it will be one of the cities in the randomly selected state.

Most of the localized data is tied to the country level, but some depends on state and others on city.

A simple example, where we need to generate 1000 random persons, could look like this:

var md = new MockingDataGenerator();
var persons = md.PersonGenerator
            .RandomPersons()
            .Select(p => new
            {
                p.FirstName,
                p.LastName,
                p.City
            })
            .Take(1000);

For more extensive examples please refer to the project wiki.

If you would like to contribute to this project then you can read more about it here.

mockingdata's People

Contributors

johanohlin avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.