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