Beispiel #1
0
 public static bool IsLinkRepeated(this StationLink stationLink, StationLink stationLinkRepeated)
 {
     return(stationLink.Origin == stationLinkRepeated.Origin && stationLink.Destination == stationLinkRepeated.Destination);
 }
Beispiel #2
0
 public static bool IsValidDestination(this StationLink link, string trainColor)
 {
     return(link.Destination.IsValidStation(trainColor));
 }
Beispiel #3
0
 public static bool IsValidLink(this StationLink link, string trainColor)
 {
     return(link.IsValidOrigin(trainColor) && link.IsValidDestination(trainColor));
 }
Beispiel #4
0
 public static bool IsValidOrigin(this StationLink link, string trainColor)
 {
     return(link.Origin.IsValidStation(trainColor));
 }