Example #1
0
            public Builder(VoyageNumber voyageNumber, Location initialDepartureLocation)
            {
                Validate.notNull(voyageNumber, "Voyage number is required");
                Validate.notNull(initialDepartureLocation, "Departure location is required");

                this.voyageNumber             = voyageNumber;
                this.currentDepartureLocation = initialDepartureLocation;
            }
Example #2
0
 public static Voyage lookup(VoyageNumber voyageNumber)
 {
     return(ALL.ContainsKey(voyageNumber) ? ALL[voyageNumber] : null);
 }