C# Class Faker.Commerce

Exibir arquivo Open project: FermJacob/Faker.Data

Public Methods

Method Description
Department ( ) : string

Gets a random department

Departments ( ) : List

Gets a list of random departments

Departments ( int numberOfDepartments ) : List

Gets a list of random departments

Price ( decimal min, decimal max, int decimals, string symbol = "" ) : string

Gets a random price

Price ( string symbol = "" ) : string

Gets a random price

Prices ( string symbol = "" ) : List

Gets a list of random product prices

Prices ( string symbol, int numberOfPrices = 1 ) : List

Gets a list of random product prices

Product ( ) : string

Gets a random product

ProductAdjective ( ) : string

Gets a random product adjective

ProductAdjectives ( ) : List

Gets a list of random product adjectives

ProductAdjectives ( int numberOfAdjectives ) : List

Gets a list of random product adjectives

ProductMaterial ( ) : string

Gets a random product material

ProductMaterials ( ) : List

Gets a list of random product materials

ProductMaterials ( int numberOfMaterials ) : List

Gets a list of random product materials

ProductName ( ) : string

Gets a random product name

ProductNames ( ) : List

Gets a list of random product names

ProductNames ( int numberOfProductNames ) : List

Gets a list of random product names

Products ( ) : List

Gets a list of random products

Products ( int numberOfProducts ) : List

Gets a list of random products

Method Details

Department() public static method

Gets a random department
public static Department ( ) : string
return string

Departments() public static method

Gets a list of random departments
public static Departments ( ) : List
return List

Departments() public static method

Gets a list of random departments
public static Departments ( int numberOfDepartments ) : List
numberOfDepartments int Number of departments
return List

Price() public static method

Gets a random price
public static Price ( decimal min, decimal max, int decimals, string symbol = "" ) : string
min decimal Minimum amount
max decimal Maximum amount
decimals int Number of decimals
symbol string Symbol to append
return string

Price() public static method

Gets a random price
public static Price ( string symbol = "" ) : string
symbol string Symbol to append
return string

Prices() public static method

Gets a list of random product prices
public static Prices ( string symbol = "" ) : List
symbol string Symbol to append
return List

Prices() public static method

Gets a list of random product prices
public static Prices ( string symbol, int numberOfPrices = 1 ) : List
symbol string Symbol to append
numberOfPrices int Number of prices
return List

Product() public static method

Gets a random product
public static Product ( ) : string
return string

ProductAdjective() public static method

Gets a random product adjective
public static ProductAdjective ( ) : string
return string

ProductAdjectives() public static method

Gets a list of random product adjectives
public static ProductAdjectives ( ) : List
return List

ProductAdjectives() public static method

Gets a list of random product adjectives
public static ProductAdjectives ( int numberOfAdjectives ) : List
numberOfAdjectives int Number of adjectives
return List

ProductMaterial() public static method

Gets a random product material
public static ProductMaterial ( ) : string
return string

ProductMaterials() public static method

Gets a list of random product materials
public static ProductMaterials ( ) : List
return List

ProductMaterials() public static method

Gets a list of random product materials
public static ProductMaterials ( int numberOfMaterials ) : List
numberOfMaterials int Number of materials
return List

ProductName() public static method

Gets a random product name
public static ProductName ( ) : string
return string

ProductNames() public static method

Gets a list of random product names
public static ProductNames ( ) : List
return List

ProductNames() public static method

Gets a list of random product names
public static ProductNames ( int numberOfProductNames ) : List
numberOfProductNames int Number of names
return List

Products() public static method

Gets a list of random products
public static Products ( ) : List
return List

Products() public static method

Gets a list of random products
public static Products ( int numberOfProducts ) : List
numberOfProducts int Number of products
return List