static void Main(string[] args) { var drivers = new List <Type>() { typeof(Pilot), typeof(Policeman), typeof(FlightServiceChief) }; ITripInformerService tripInformerService = new TripInformerService(); IMovementService movementService = new MovementService(drivers, tripInformerService); ITripService tripService = new TripService(tripInformerService, movementService); tripService.Execute(); }
public void should_execute_without_throw_exception() { var drivers = new List <Type>() { typeof(Pilot), typeof(Policeman), typeof(FlightServiceChief) }; ITripInformerService tripInformerService = new TripInformerService(); IMovementService movementService = new MovementService(drivers, tripInformerService); ITripService tripService = new TripService(tripInformerService, movementService); tripService.Execute(); }