emrecaglar / mockdatagenerator Goto Github PK
View Code? Open in Web Editor NEWGenerate mock data for POCO
License: MIT License
Generate mock data for POCO
License: MIT License
Generating URL mock data using IDataGenerator<
T>
Ex:
public class URLGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Gender mock data using IDataGenerator<
T>
Ex:
public class GenderGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Email mock data using IDataGenerator<
T>
Ex:
public class EmailGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Phone mock data using IDataGenerator<
T>
Ex:
public class PhoneGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Name mock data using IDataGenerator<
T>
Ex:
public class NameGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Region mock data using IDataGenerator<
T>
All of country codes:
https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv
Ex:
public class RegionGenerator: RandomizerBase, IDataGenerator<string>
{
}
Ex:
public class AutoIncrementGenerator: RandomizerBase, IDataGenerator<int>
{
public AutoIncrementGenerator(int start = 1, int increment = 1)
{
}
}
Generating Language mock data using IDataGenerator<
T>
Some languages:
Turksih, English, Spanish, German
Ex:
public class LanguageGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Culture mock data using IDataGenerator<
T>
Some cultures:
tr-TR, en-US
Ex:
public class CultureGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Money Symbol mock data using IDataGenerator<
T>
Some money symbols: ₺ € £ $ ฿ ₨ ﷼ ƒ ¥
Ex:
public class MoneySymbolGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Surname mock data using IDataGenerator<
T>
Ex:
public class SurnameGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Monay mock data using IDataGenerator<
T>
Ex:
public class MonayGenerator: RandomizerBase, IDataGenerator<decimal>
{
public MonayGenerator(decimal? min = decimal.MinValue, decimal? max = decimal.MaxValue)
{
}
}
Generating Country mock data using IDataGenerator<
T>
All of countries
https://alphabetizer.flap.tv/lists/list-of-all-world-countries.php
Ex:
public class CountryGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating Currency Code mock data using IDataGenerator<
T>
All of currency codes (iso) :
https://www.currency-iso.org/dam/downloads/lists/list_one.xml
Some currency codes: TRY, USD, EUR
Ex:
public class CurrencyCodeGenerator: RandomizerBase, IDataGenerator<string>
{
}
Generating CreditCard mock data using IDataGenerator<
T>
If CardType is not specified, random card numbers can be generated.
Ex:
public enum CardType
{
Visa,
Master,
Amex,
...
}
public class CreditCardGenerator: RandomizerBase, IDataGenerator<string>
{
public CreditCardGenerator(CardType? cardType = null)
{
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.