-
Notifications
You must be signed in to change notification settings - Fork 2
Using Polyjuice Fakers
Yan Justino edited this page Dec 26, 2019
·
1 revision
The Polyjuice fakers provides values to objects attributes. You can use Fakers to build Address, Bank, Company, Conference, Country, DateAndTime, Gender, Geolocation, Identification, Internet, Job, Locale, Name, Phone, Price, Product and Vehicle attributes. The code 1 shown how use the fakers on models
var person = new Person
{
FirstName = Name.FirstName,
LastName = Name.LastName,
FullName = Name.FullName ,
NameWithPrefix = Name.NameWithPrefix,
Gender = Gender.Random,
Birthday = DateAndTime.Birthday
};
var account = new BankAccount
{
CardNumber = Bank.CardNumber,
CardExpiryDate = Bank.CardExpiryDate,
CardType = Bank.CardType,
Iban = Bank.Iban()
}; code 1 - using fakers on models