8 lines
761 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 共享内核类型别名:测试项目不继承 Domain/Application 的 global using,
// 需独立声明 3 个通用异常别名,使测试文件里的裸名 BusinessException/NotFoundException/UnauthorizedException
// 解析到内核类型。work-flow 特有的 InvalidStateTransitionException 仍由 `using global::BuildFlow.Workflow.Domain.Exceptions;` 提供。
global using BusinessException = global::BuildFlow.Shared.Domain.Exceptions.BusinessException;
global using NotFoundException = global::BuildFlow.Shared.Domain.Exceptions.NotFoundException;
global using UnauthorizedException = global::BuildFlow.Shared.Domain.Exceptions.UnauthorizedException;
global using WorkflowDbContext = global::Workflow.Infrastructure.Persistence.WorkflowDbContext;