C# Class TestProjectNoDBSpecificProps.Test.BO.TestUtilsDriver

显示文件 Open project: Chillisoft/habanero.smooth Class Usage Examples

Public Methods

Method Description
CreateSavedDriver ( ) : Driver

Creates a new saved Driver with a random value assigned to every property

CreateUnsavedDefaultDriver ( ) : Driver

Creates a new unsaved Driver where all properties are null, except ID properties and those with default values. If there are compulsory properties without defaults, saving the object will throw an exception.

CreateUnsavedValidDriver ( ) : Driver

Creates a new unsaved Driver with a random value assigned to every property

Method Details

CreateSavedDriver() public static method

Creates a new saved Driver with a random value assigned to every property
public static CreateSavedDriver ( ) : Driver
return TestProjectNoDBSpecificProps.BO.Driver

CreateUnsavedDefaultDriver() public static method

Creates a new unsaved Driver where all properties are null, except ID properties and those with default values. If there are compulsory properties without defaults, saving the object will throw an exception.
public static CreateUnsavedDefaultDriver ( ) : Driver
return TestProjectNoDBSpecificProps.BO.Driver

CreateUnsavedValidDriver() public static method

Creates a new unsaved Driver with a random value assigned to every property
public static CreateUnsavedValidDriver ( ) : Driver
return TestProjectNoDBSpecificProps.BO.Driver