Exemple #1
0
 private RentalCar(RentalCarId id, RentalCarSpecification specification, RentalCarOperatingInfo operatingInfo, string vinNumber,
                   string description, double pricePerDay, string imageUrl = null)
 {
     this.Id            = id;
     this.specification = specification;
     this.operatingInfo = operatingInfo;
     this.vinNumber     = vinNumber;
     this.description   = description;
     this.pricePerDay   = pricePerDay;
     this.imageUrl      = imageUrl;
 }
Exemple #2
0
 public static RentalCar Create(RentalCarId id, RentalCarSpecification specification, RentalCarOperatingInfo operatingInfo, string vinNumber,
                                string description, double pricePerDay, string imageUrl = null)
 {
     return(new RentalCar(id, specification, operatingInfo, vinNumber, description, pricePerDay, imageUrl));
 }