C# Class TestProject.Test.BO.TestUtilsVehicle

Afficher le fichier Open project: Chillisoft/habanero.smooth Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

CreateUnsavedDefaultVehicle() public static méthode

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
Résultat TestProject.BO.Vehicle

CreateUnsavedValidVehicle() public static méthode

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