Exemple #1
0
 public MilitaryPlane(string airplaneModel, int maxSpeed, int maxFlightDistance, int maxLoadCapacity, MilitaryAirplaneType airplaneType)
     : base(airplaneModel, maxSpeed, maxFlightDistance, maxLoadCapacity)
 {
     _type = airplaneType;
 }
Exemple #2
0
 private bool IsListContainsOnlySelectedMilitaryAirplaneType(List <MilitaryPlane> militaryPlanes, MilitaryAirplaneType airplaneType)
 {
     return(militaryPlanes.FirstOrDefault(x => x.GetPlaneType() != airplaneType) == null);
 }