예제 #1
0
 public void AddDefaultVehicalType(BuySellDoc buySellDoc)
 {
     if (buySellDoc.VehicalTypeRequestedId.IsNullOrWhiteSpace())
     {
         VehicalType vt = VehicalTypeBiz.FindByName("Any Vehical Type");
         vt.IsNullThrowException();
         buySellDoc.VehicalTypeRequestedId = vt.Id;
     }
 }
예제 #2
0
 public Automobile(string id, VehicalType typeOfVehical, string brand, string modelSeries, string modelId, DateTime manufacturingDate, double showroomPrice)
 {
     Id                = id;
     Type              = typeOfVehical;
     Brand             = brand;
     ModelSeries       = modelSeries;
     ModelId           = modelId;
     ManufacturingDate = manufacturingDate;
     ShowroomPrice     = showroomPrice;
 }
예제 #3
0
 protected Vehicle(int weight, VehicalType type, bool enviromentVehicle)
 {
     Weight            = weight;
     Type              = type;
     EnviromentVehicle = enviromentVehicle;
 }