public OrdersWithoutCaeController(OrdersWithoutCaeService ordersService, LinesService linesService, HeaderService headerService, AuthRepository authRepository) { _ordersService = ordersService; _authRepository = authRepository; _linesService = linesService; _headerService = headerService; }
public LinesServiceTests() { var fileSystemMock = new Mock <IFileSystem>(); FileMock = new Mock <IFile>(); fileSystemMock.SetupGet(_ => _.File) .Returns(FileMock.Object); Service = new LinesService(fileSystemMock.Object); }
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); }
public LinesService.Stop[] GetStopsForLine(LinesService.Line line) { return linesService.GetStopsForLine(line.ID, line.RouteID); }