public static ICollection <IAircraft> GetListAircraft() { AircraftPropertiesModel aircraftProperties = new AircraftPropertiesModel(capacity: 200, carryingCapacity: 500, rangeOfFlight: 5000); AircraftPropertiesModel aircraftProperties1 = new AircraftPropertiesModel(capacity: 200, carryingCapacity: 500, rangeOfFlight: 4000); AircraftPropertiesModel aircraftProperties2 = new AircraftPropertiesModel(capacity: 200, carryingCapacity: 500, rangeOfFlight: 3000); PlanePropertiesModel planeProperties = new PlanePropertiesModel(numberOfEngines: 2, numberOfPilots: 2, accelerationLine: 500); HelicopterPropertiesModel helicopterProperties = new HelicopterPropertiesModel(maximumHeightOfWork: 300, minimumHeightOfWork: 50, numberOfScrews: 4); List <IAircraft> airport = new List <IAircraft>() { new Aircraft("Original", "Original", aircraftProperties), new Plane(typeOfPlane: "boing1", nameOfPlane: "Alice", aircraftProperties: aircraftProperties, planeProperties: planeProperties), new PassengerPlane(typeOfPlane: "boing2", nameOfPlane: "Orianna", aircraftProperties: aircraftProperties1, planeProperties: planeProperties, numberOfPlaces: 120), new TransportPlane(typeOfPlane: "boing2", nameOfPlane: "TwoBe", aircraftProperties: aircraftProperties2, planeProperties: planeProperties, power: 20), new Helicopter(typeOfPlane: "Ansat1", nameOfPlane: "NineS", aircraftProperties: aircraftProperties1, helicopterProperties: helicopterProperties), new PassengerHelicopter(typeOfPlane: "Ansat2", nameOfPlane: "ATwo", aircraftProperties: aircraftProperties, helicopterProperties: helicopterProperties, numberOfPlaces: 30), new TransportHelicopter(typeOfPlane: "Ansat3", nameOfPlane: "Nier", aircraftProperties: aircraftProperties2, helicopterProperties: helicopterProperties, power: 5) }; return(airport); }
public PassengerHelicopter(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, HelicopterPropertiesModel helicopterProperties, int numberOfPlaces) : base(typeOfPlane, nameOfPlane, aircraftProperties, helicopterProperties) { NumberOfPlaces = numberOfPlaces; }
public Helicopter(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, HelicopterPropertiesModel helicopterProperties) : base(typeOfPlane, nameOfPlane, aircraftProperties) { HelicopterProperties = helicopterProperties; }
public PassengerPlane(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, PlanePropertiesModel planeProperties, int numberOfPlaces) : base(typeOfPlane, nameOfPlane, aircraftProperties, planeProperties) { NumberOfPlaces = numberOfPlaces; }
public Plane(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, PlanePropertiesModel planeProperties) : base(typeOfPlane, nameOfPlane, aircraftProperties) { PlaneProperties = planeProperties; }
public TransportPlane(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, PlanePropertiesModel planeProperties, double power) : base(typeOfPlane, nameOfPlane, aircraftProperties, planeProperties) { Power = power; }
public TransportHelicopter(string typeOfPlane, string nameOfPlane, AircraftPropertiesModel aircraftProperties, HelicopterPropertiesModel helicopterProperties, double power) : base(typeOfPlane, nameOfPlane, aircraftProperties, helicopterProperties) { Power = power; }