修复课表
This commit is contained in:
@@ -302,6 +302,21 @@ public sealed class AttendanceControllerTests
|
||||
Assert.Contains(
|
||||
"SharedDevice",
|
||||
sharedDeviceAttempt.RiskFlags ?? string.Empty);
|
||||
var sheetDetailResult = await controller.GetSheet(
|
||||
qrSheet.Id,
|
||||
CancellationToken.None);
|
||||
var sheetDetailOk = Assert.IsType<OkObjectResult>(sheetDetailResult);
|
||||
var sheetDetail = sheetDetailOk.Value!.GetType()
|
||||
.GetProperty("Sheet")!
|
||||
.GetValue(sheetDetailOk.Value)!;
|
||||
var riskSummary = sheetDetail.GetType()
|
||||
.GetProperty("RiskSummary")!
|
||||
.GetValue(sheetDetail)!;
|
||||
Assert.Equal(
|
||||
2,
|
||||
riskSummary.GetType()
|
||||
.GetProperty("SharedDeviceStudentCount")!
|
||||
.GetValue(riskSummary));
|
||||
|
||||
var locationRecord = new AttendanceRecord
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user