C# Class SocialNetwork.ConsoleClient.Generator.RandomGenerator

This class is only used for generating the test files. It is not part of the solution to the task.
ファイルを表示 Open project: TelerikAcademy/Databases

Public Methods

Method Description
RandomBool ( ) : bool
RandomDateTime ( System.DateTime after = null, System.DateTime before = null ) : System.DateTime
RandomNumber ( int min, int max = int.MaxValue/2 ) : int
RandomString ( int minLength, int maxLength = int.MaxValue/2 ) : string

Private Methods

Method Description
RandomGenerator ( ) : System

Method Details

RandomBool() public static method

public static RandomBool ( ) : bool
return bool

RandomDateTime() public static method

public static RandomDateTime ( System.DateTime after = null, System.DateTime before = null ) : System.DateTime
after System.DateTime
before System.DateTime
return System.DateTime

RandomNumber() public static method

public static RandomNumber ( int min, int max = int.MaxValue/2 ) : int
min int
max int
return int

RandomString() public static method

public static RandomString ( int minLength, int maxLength = int.MaxValue/2 ) : string
minLength int
maxLength int
return string