Esempio n. 1
0
        public async Task SetAttendeeBrowserToleranceValueAsyncTest()
        {
            var test = CreateTest("Mathematics");
            await _testRepository.CreateTestAsync(test, "5");

            var testAttendee = CreateTestAttendee(test.Id);
            await _testConductRepository.RegisterTestAttendeesAsync(testAttendee);

            testAttendee.AttendeeBrowserToleranceCount = 2;
            await _testConductRepository.SetAttendeeBrowserToleranceValueAsync(testAttendee.Id, testAttendee.AttendeeBrowserToleranceCount);

            Assert.True(testAttendee.AttendeeBrowserToleranceCount != 0);
        }
Esempio n. 2
0
        public async Task <IActionResult> SetAttendeeBrowserToleranceValueAsync([FromRoute] int attendeeId, [FromRoute] int focusLostCount)
        {
            await _testConductRepository.SetAttendeeBrowserToleranceValueAsync(attendeeId, focusLostCount);

            return(Ok(focusLostCount));
        }