/// <summary>
 /// Constructor initializes properties
 /// </summary>
 /// <param name="carCatalog">Catalog of cars</param>
 public AveragePriceCommand(CarCatalog carCatalog)
 {
     this.Catalog = carCatalog;
 }
 /// <summary>
 /// Constructor initializes properties
 /// </summary>
 /// <param name="carCatalog">Catalog of cars</param>
 /// <param name="brand">Brand for counting</param>
 public AveragePriceTypeCommand(CarCatalog carCatalog, string brand)
 {
     this.Catalog = carCatalog;
     this.Brand   = brand;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor initializes properties
 /// </summary>
 /// <param name="carCatalog">Catalog of cars</param>
 public CountTypesCommand(CarCatalog carCatalog)
 {
     this.Catalog = carCatalog;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor initializes properties
 /// </summary>
 /// <param name="carCatalog">Catalog of cars</param>
 public CountAllCommand(CarCatalog carCatalog)
 {
     this.Catalog = carCatalog;
 }