Example #1
0
 public Locomotive(Locomotive other) : this(other.Weight, other.MaximumWeight)
 {
 }
Example #2
0
 public Train(Locomotive locomotive, List <Wagon> wagons) : this()
 {
     Locomotive = locomotive;
     Wagons.AddRange(wagons);
 }
 public Train CreateTrain(Locomotive locomotive, IEnumerable <Wagon> wagons)
 {
     return(new Train());
 }