public OrdersWithoutCaeController(OrdersWithoutCaeService ordersService, LinesService linesService, HeaderService headerService, AuthRepository authRepository)
 {
     _ordersService  = ordersService;
     _authRepository = authRepository;
     _linesService   = linesService;
     _headerService  = headerService;
 }
Exemplo n.º 2
0
        public LinesServiceTests()
        {
            var fileSystemMock = new Mock <IFileSystem>();

            FileMock = new Mock <IFile>();
            fileSystemMock.SetupGet(_ => _.File)
            .Returns(FileMock.Object);
            Service = new LinesService(fileSystemMock.Object);
        }
Exemplo n.º 3
0
        public List<Paragraph> GetTimetable(LinesService.Stop stop)
        {
            List<TimetableDTO> timetable = new List<TimetableDTO>();
            foreach (LinesService.Timetable obj in linesService.GetTimetable(stop.RouteDetailsID))
            {
                timetable.Add(new TimetableDTO(obj.DayName, obj.Table, obj.Legend));
            }

            return PrepareTimetable(timetable);
        }
Exemplo n.º 4
0
 public LinesService.Stop[] GetStopsForLine(LinesService.Line line)
 {
     return linesService.GetStopsForLine(line.ID, line.RouteID);
 }