C# Class TestProjectNoDBSpecificProps.Test.BO.TestUtilsCar

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

Méthodes publiques

Méthode Description
CreateSavedCar ( ) : Car

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

CreateUnsavedDefaultCar ( ) : Car

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

CreateUnsavedValidCar ( ) : Car

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

Method Details

CreateSavedCar() public static méthode

Creates a new saved Car with a random value assigned to every property
public static CreateSavedCar ( ) : Car
Résultat TestProjectNoDBSpecificProps.BO.Car

CreateUnsavedDefaultCar() public static méthode

Creates a new unsaved Car 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 CreateUnsavedDefaultCar ( ) : Car
Résultat TestProjectNoDBSpecificProps.BO.Car

CreateUnsavedValidCar() public static méthode

Creates a new unsaved Car with a random value assigned to every property
public static CreateUnsavedValidCar ( ) : Car
Résultat TestProjectNoDBSpecificProps.BO.Car