Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var     typedValue     = string.Empty;
            var     machineBuilder = new MachineBuilder();
            var     kAlphabet      = new Alphabet(alphabet);
            var     keyboard       = new Keyboard(kAlphabet);
            var     monitor        = new Monitor();
            Machine machine        = machineBuilder.Monitor.SetMonitor(monitor).Keyboard.SetKeyboard(keyboard);

            while (true)
            {
                var stations = StationFilter.GetStationsByTypedValue(typedValue);
                machine.SetAddition("station", stations.Stations);
                keyboard.Filter(string.Join(string.Empty, stations.NextCharacteres));

                Console.WriteLine("TICKET MACHINE");
                Console.WriteLine();
                Console.WriteLine(machine);
                Console.WriteLine("Enter the Station Name : ");

                typedValue        = Console.ReadLine();
                keyboard.Alphabet = new Alphabet(alphabet);

                Console.WriteLine(typedValue);
                Console.Clear();
            }
        }
Ejemplo n.º 2
0
 public List <StationDTO> GetStationsByFilter(StationFilter filter)
 {
     using (var uow = UnitOfWorkProvider.Create())
     {
         stationListQuery.Filter = filter;
         return(stationListQuery.Execute().ToList());
     }
 }
Ejemplo n.º 3
0
 public ActionResult Index(StationFilter filter = null)
 {
     return(View(RouteFacade.GetAllStationsByFilter(filter)));
 }
Ejemplo n.º 4
0
 public List<StationDTO> GetAllStationsByFilter(StationFilter filter)
 {
     return stationService.GetStationsByFilter(filter);
 }