C# Class TestProject.Test.BO.TestUtilsCar

Mostrar archivo 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 TestProject.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 TestProject.BO.Car

CreateUnsavedValidCar() public static method

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