public Train(Locomotive locomotive, List <Wagon> wagons) : this() { Locomotive = locomotive; Wagons.AddRange(wagons); }
public Station(string name, IEnumerable <Wagon> wagons, IEnumerable <Locomotive> locomotives) : this() { Name = name; Wagons.AddRange(wagons); Locomotives.AddRange(locomotives); }