public OrdersWithoutCaeController(OrdersWithoutCaeService ordersService, LinesService linesService, HeaderService headerService, AuthRepository authRepository)
 {
     _ordersService  = ordersService;
     _authRepository = authRepository;
     _linesService   = linesService;
     _headerService  = headerService;
 }
Esempio 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);
        }
Esempio 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);
        }
Esempio n. 4
0
 public LinesService.Stop[] GetStopsForLine(LinesService.Line line)
 {
     return linesService.GetStopsForLine(line.ID, line.RouteID);
 }