C# Класс TestProject.Test.BO.TestUtilsVehicle

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

CreateSavedVehicle() публичный статический Метод

Creates a new saved Vehicle with a random value assigned to every property
public static CreateSavedVehicle ( ) : Vehicle
Результат TestProject.BO.Vehicle

CreateUnsavedDefaultVehicle() публичный статический Метод

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
Результат TestProject.BO.Vehicle

CreateUnsavedValidVehicle() публичный статический Метод

Creates a new unsaved Vehicle with a random value assigned to every property
public static CreateUnsavedValidVehicle ( ) : Vehicle
Результат TestProject.BO.Vehicle