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(); }
public void SetMaker(VehicleMake make) { this.Make = make; }