refactor: 移除平台公告与跨租户目标

This commit is contained in:
root
2026-01-29 13:15:53 +00:00
parent 0d9402d204
commit 77836e270f
16 changed files with 110 additions and 58 deletions

View File

@@ -21,7 +21,7 @@ public sealed class GetAnnouncementByIdQueryHandlerTests
var announcementRepository = new Mock<ITenantAnnouncementRepository>();
announcementRepository
.Setup(x => x.FindByIdInScopeAsync(99, 500, It.IsAny<CancellationToken>()))
.Setup(x => x.FindByIdAsync(99, 500, It.IsAny<CancellationToken>()))
.ReturnsAsync((TenantAnnouncement?)null);
var readRepository = new Mock<ITenantAnnouncementReadRepository>();
@@ -55,7 +55,7 @@ public sealed class GetAnnouncementByIdQueryHandlerTests
var announcementRepository = new Mock<ITenantAnnouncementRepository>();
announcementRepository
.Setup(x => x.FindByIdInScopeAsync(100, 1, It.IsAny<CancellationToken>()))
.Setup(x => x.FindByIdAsync(100, 1, It.IsAny<CancellationToken>()))
.ReturnsAsync(announcement);
var readRepository = new Mock<ITenantAnnouncementReadRepository>();
@@ -94,7 +94,7 @@ public sealed class GetAnnouncementByIdQueryHandlerTests
var announcementRepository = new Mock<ITenantAnnouncementRepository>();
announcementRepository
.Setup(x => x.FindByIdInScopeAsync(200, 10, It.IsAny<CancellationToken>()))
.Setup(x => x.FindByIdAsync(200, 10, It.IsAny<CancellationToken>()))
.ReturnsAsync(announcement);
var readRepository = new Mock<ITenantAnnouncementReadRepository>();

View File

@@ -17,7 +17,7 @@ public static class AnnouncementTestData
EffectiveFrom = DateTime.UtcNow.AddHours(-1),
EffectiveTo = DateTime.UtcNow.AddHours(2),
PublisherScope = PublisherScope.Tenant,
TargetType = "ALL_TENANTS",
TargetType = "TENANT_ALL",
TargetParameters = null
};
@@ -28,7 +28,7 @@ public static class AnnouncementTestData
AnnouncementId = 9001,
Title = "更新公告",
Content = "更新内容",
TargetType = "ALL_TENANTS",
TargetType = "TENANT_ALL",
TargetParameters = null,
RowVersion = new byte[] { 1, 2, 3 }
};