C# Class TestProject.Test.BO.TestUtilsVehicle

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

Public Methods

Method Description
CreateSavedVehicle ( ) : Vehicle

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

CreateUnsavedDefaultVehicle ( ) : Vehicle

Creates a new unsaved Vehicle 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.

CreateUnsavedValidVehicle ( ) : Vehicle

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

Method Details

CreateSavedVehicle() public static method

Creates a new saved Vehicle with a random value assigned to every property
public static CreateSavedVehicle ( ) : Vehicle
return TestProject.BO.Vehicle

CreateUnsavedDefaultVehicle() public static method

Creates a new unsaved Vehicle 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 CreateUnsavedDefaultVehicle ( ) : Vehicle
return TestProject.BO.Vehicle

CreateUnsavedValidVehicle() public static method

Creates a new unsaved Vehicle with a random value assigned to every property
public static CreateUnsavedValidVehicle ( ) : Vehicle
return TestProject.BO.Vehicle