C# Class TestProjectNoDBSpecificProps.Test.BO.TestUtilsCar

Exibir arquivo Open project: Chillisoft/habanero.smooth Class Usage Examples

Public Methods

Method 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 method

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

CreateUnsavedDefaultCar() public static method

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
return TestProjectNoDBSpecificProps.BO.Car

CreateUnsavedValidCar() public static method

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