public TimeTableController(TimeTableManager timeTableManager, TimeTableRepository timeTableRepository, SubjectRepository subjectRepository, FacultyRepository facultyRepository, ClassesRepository classesRepository, TimeTableViewModelValidator tableViewModelValidator) { _timeTableManager = timeTableManager; _timeTableRepository = timeTableRepository; _subjectRepository = subjectRepository; _facultyRepository = facultyRepository; _classesRepository = classesRepository; _tableViewModelValidator = tableViewModelValidator; }
static void Main(string[] args) { Console.WriteLine("Digite a matricula:"); var mat = int.Parse(Console.ReadLine()); Console.WriteLine("Digite a senha:"); LoginRequest loginRequest = new LoginRequest ( new LoginData() { Id = mat, Password = GetPassw() } ); Console.Clear(); Console.WriteLine("\n\t #### Aguarde enquanto os dados sao processados..."); var responseMessage = loginRequest.Login(); var table = TimeTableManager.GetTimeTable(responseMessage.Content.ReadAsStringAsync().Result); Console.Clear(); PrintTimeTable(table); GradebookRequest requestPage = new GradebookRequest(loginRequest.Client); var html = requestPage.GradebookPageRequest(); var gradebook = GradebookManager.GetGradebookResume(html); Console.Clear(); PrintGradeBook(gradebook); Console.ReadKey(); }
void Start() { timeTableManager = FindObjectOfType <TimeTableManager>(); }