名称Branding变更

This commit is contained in:
biss committed 2026-09-29 10:42:28 +08:00
1 parent c74c1e3914
commit 8b5103d542
41 files changed
+282 -93

No files matched your search

@@ -38,7 +38,7 @@ public sealed class GradeAnalysisWordReportGeneratorTests
[new(Guid.NewGuid(), "2026-2027 学年第一学期", 100, 76m, 88m, 18m, new(10, 78.5m, 90m, 20m))],
new(2.5m, 2m, 76m, 88m));
var bytes = GradeAnalysisWordReportGenerator.Generate(report, now);
var bytes = GradeAnalysisWordReportGenerator.Generate(report, now, "测试校园综合服务平台");
Assert.True(bytes.Length > 10_000);
using var stream = new MemoryStream(bytes);
@@ -74,7 +74,7 @@ public sealed class GradeAnalysisWordReportGeneratorTests
[new("计算机学院", 18, 80m, 88.89m, 27.78m), new("电子信息学院", 12, 76.3m, 83.33m, 25m)],
[new(Guid.NewGuid(), Guid.NewGuid(), "2026-2027 学年第一学期", "TASK-01", "程序设计一班", "张老师", 18, 99m, 80.2m, 82m, 52m, 11.2m, 88.89m, 27.78m)]);
var bytes = GradeAnalysisWordReportGenerator.Generate(report, now);
var bytes = GradeAnalysisWordReportGenerator.Generate(report, now, "测试校园综合服务平台");
Assert.True(bytes.Length > 8_000);
using var stream = new MemoryStream(bytes);
@@ -2,6 +2,7 @@ using Jiaowu.Api.Controllers;
using Jiaowu.Api.Domain.Academic;
using Jiaowu.Api.Domain.Identity;
using Jiaowu.Api.Infrastructure.Auth;
using Jiaowu.Api.Infrastructure.Branding;
using Jiaowu.Api.Infrastructure.OfficialDocuments;
using Jiaowu.Api.Infrastructure.Persistence;
using Microsoft.AspNetCore.Mvc;
@@ -107,7 +108,11 @@ public sealed class GradeAnalyticsCommentsControllerTests
private static GradeAnalyticsController CreateController(
AppDbContext db, Guid userId, params string[] roles) =>
new(db, new TestDataScope(userId, roles), new OfficialDocumentOptions());
new(
db,
new TestDataScope(userId, roles),
new OfficialDocumentOptions(),
new BrandingOptions { ProductName = "测试校园综合服务平台" });
private sealed class TestDataScope(Guid userId, params string[] roles)
: ICurrentUserDataScope
@@ -2,6 +2,7 @@ using System.Text;
using Jiaowu.Api.Domain.Academic;
using Jiaowu.Api.Domain.Identity;
using Jiaowu.Api.Infrastructure.Auth;
using Jiaowu.Api.Infrastructure.Branding;
using Jiaowu.Api.Infrastructure.Persistence;
using Jiaowu.Api.Infrastructure.Timetables;
using Microsoft.Data.Sqlite;
@@ -473,5 +474,6 @@ public sealed class PersonalCalendarServiceTests : IAsyncLifetime
Options.Create(new JwtOptions
{
Key = "calendar-test-signing-key-with-at-least-thirty-two-characters"
}));
}),
new BrandingOptions { ShortName = "测试校园" });
}
Loaded 3 of 41 files, more files were not shown because too many files have changed in this diff. Show more