Exemplo n.º 1
0
 public void TouchOut(TransportOptions options, string startingPoint, string stoppingPoint)
 {
     if (_objJourney != null)
     {
         if (_objJourney.complete(stoppingPoint.ToLower()))
         {
             RefundMoney(_objJourney.Fare_Difference(startingPoint.ToLower(), stoppingPoint.ToLower()));
         }
         else
         {
             _objJourney = new Journey(options, startingPoint.ToLower(), stoppingPoint.ToLower());
             Charge(_objJourney.Basic_Fare());
         }
     }
 }
Exemplo n.º 2
0
 public void TouchIn(TransportOptions options, string startingPoint)
 {
     _objJourney = new Journey(options, startingPoint.ToLower());
     Charge(_objJourney.Basic_Fare());
 }
Exemplo n.º 3
0
 public void TouchIn()
 {
     _objJourney = new Journey(TransportOptions.Bus, null, null);
     Charge(_objJourney.Basic_Fare());
 }