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;
 }
示例#3
0
 public void HandleDeparture(DepartureEvent departureEvent)
 {
     Port = Port.AT_SEA;
 }
示例#4
0
 public void HandleArrival(ArrivalEvent arrivalEvent)
 {
     Port = arrivalEvent.Port;
 }
 public DepartureEvent(DateTime datetime, Port port, Ship ship)
     : base(datetime)
 {
     this.port = port;
     this.ship = ship;
 }