/// <summary> /// Initializes a new instance of the <see cref="DatabaseCars"/> class. /// </summary> /// <param name="xDoc"> /// XML doc with cars info. /// </param> private DatabaseCars(XDocument xDoc) { this.ListOfCars = XmlParser.ParseVehicleInfo(xDoc); }
/// <summary> /// Initializes a new instance of the <see cref="DatabaseTrucks"/> class. /// </summary> /// <param name="xDoc"> /// XML doc with trucks info. /// </param> private DatabaseTrucks(XDocument xDoc) { this.ListOfTrucks = XmlParser.ParseVehicleInfo(xDoc); }