毕业审核:批次计算、缺失课程检查、人工复核、结果发布。 学位授予:毕业资格与 GPA 计算、人工调整、发布授予结果。 毕业离校:离校事项配置、责任角色分工、逐项办理及批次关闭。
39 lines
1000 B
C#
39 lines
1000 B
C#
using Jiaowu.Api.Domain.Academic;
|
|
using Jiaowu.Api.Infrastructure.Graduation;
|
|
|
|
namespace Jiaowu.Api.Tests;
|
|
|
|
public sealed class GraduationClearanceRulesTests
|
|
{
|
|
[Fact]
|
|
public void Required_items_may_be_completed_or_waived()
|
|
{
|
|
var records = new[]
|
|
{
|
|
(true, GraduationClearanceRecordStatus.Completed),
|
|
(true, GraduationClearanceRecordStatus.Waived),
|
|
(false, GraduationClearanceRecordStatus.Pending)
|
|
};
|
|
|
|
Assert.True(GraduationClearanceRules.CanClose(records));
|
|
}
|
|
|
|
[Fact]
|
|
public void Pending_required_item_prevents_batch_close()
|
|
{
|
|
var records = new[]
|
|
{
|
|
(true, GraduationClearanceRecordStatus.Completed),
|
|
(true, GraduationClearanceRecordStatus.Pending)
|
|
};
|
|
|
|
Assert.False(GraduationClearanceRules.CanClose(records));
|
|
}
|
|
|
|
[Fact]
|
|
public void Empty_batch_cannot_be_closed()
|
|
{
|
|
Assert.False(GraduationClearanceRules.CanClose([]));
|
|
}
|
|
}
|