public void SetUp() { eventProcessor = new EventProcessor(); refact = new Cargo ("Refactoring"); kr = new Ship ("King Roy"); sfo = new Port("San Francisco", Country.US); la = new Port ("Los Angeles", Country.US); yyv = new Port("Vancouver",Country.CANADA); }
public ArrivalEvent(DateTime datetime, Port port, Ship ship) : base(datetime) { this.port = port; this.ship = ship; }
public void HandleDeparture(DepartureEvent departureEvent) { Port = Port.AT_SEA; }
public void HandleArrival(ArrivalEvent arrivalEvent) { Port = arrivalEvent.Port; }
public DepartureEvent(DateTime datetime, Port port, Ship ship) : base(datetime) { this.port = port; this.ship = ship; }