public StationRouteController()
        {
            var context = new TrainBookingContext();

            _stationRouteLogic = new StationRouteLogic(new StationRouteRepository(context));
            _routeLogic = new RouteLogic(new RouteRepository(context));
            _stationLogic = new StationLogic(new StationRepository(context));
        }
        //git commit
        public RouteController()
        {
            var context = new TrainBookingContext();

            _routeLogic = new RouteLogic(new RouteRepository(context));
            _stationLogic = new StationLogic(new StationRepository(context));
            _stationRouteLogic = new StationRouteLogic(new StationRouteRepository(context));
            _wagonTypeLogic = new WagonTypeLogic(new WagonTypeRepository(context));
            _ticketLogic = new TicketLogic(new TicketRepository(context));
        }
Exemple #3
0
 public HomeController(IStationLogic client, ITripLogic tripLogic)
 {
     _client    = client;
     _tripLogic = tripLogic;
 }
 public HomeController(IStationLogic client)
 {
     _client = client;
 }
 public RoutesController(IRouteLogic routeStub, IStationLogic stationStub)
 {
     _routeBLL   = routeStub;
     _stationBLL = stationStub;
 }
 public RoutesController()
 {
     _routeBLL   = new RouteLogic();
     _stationBLL = new StationLogic();
 }
 public UniqueStationAttribute(string lastStation)
 {
     LastStation = lastStation;
     var context = new TrainBookingContext();
     _stationLogic = new StationLogic(new StationRepository(context));
 }
Exemple #8
0
 public StationsController(IStationLogic stub)
 {
     _stationBLL = stub;
 }
Exemple #9
0
 public StationsController()
 {
     _stationBLL = new StationLogic();
 }