Пример #1
0
 public Handler(LoginStudentService loginStudentService, LoginTeacherService loginTeacherService, TestStudentService testService, TestTeacherService testTeacherService)
 {
     LoginStudentService = loginStudentService;
     LoginTeacherService = loginTeacherService;
     TestStudentService  = testService;
     TestTeacherService  = testTeacherService;
 }
Пример #2
0
        public override async Task HandlerRequest(Command command, Client client)
        {
            if (command.UserCommand == UserCommandServer.NoCommand && command.AdminCommand == AdminCommandServer.GetTest)
            {
                Command sendCommand = new Command();
                sendCommand.Test = await TestTeacherService.GeTestAsync(command.Test.Id);

                client.SendCommand(sendCommand);
            }
            else if (Successor != null)
            {
                await Successor.HandlerRequest(command, client);
            }
        }
Пример #3
0
 public SignUpTeacherHandler(LoginStudentService loginStudentService, LoginTeacherService loginTeacherService, TestStudentService testService, TestTeacherService testTeacherService)
     : base(loginStudentService, loginTeacherService, testService, testTeacherService)
 {
 }
Пример #4
0
 public GetListTestsHandler(LoginStudentService loginStudentService, LoginTeacherService loginTeacherService, TestStudentService testService, TestTeacherService testTeacherService)
     : base(loginStudentService, loginTeacherService, testService, testTeacherService)
 {
 }