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);
 }
예제 #2
0
 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;
 }