Exemple #1
0
 public Vehicle(string vin, int year, VehicleMake make, string model)
 {
     if (make == VehicleMake.Null)
     {
         throw new ArgumentException("Vehicle make is required!", nameof(make));
     }
     this.Vin     = vin;
     this.Year    = year;
     this.Make    = make;
     this.Model   = model;
     this.Deleted = false;
     this.Id      = Guid.NewGuid();
 }
Exemple #2
0
 public void SetMaker(VehicleMake make)
 {
     this.Make = make;
 }