You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- ControllerFactory:封装14个Controller的创建(含完整Repository→Service→Controller依赖链) - TestDb:测试数据库辅助(TruncateAll+SeedData+SetRealPasswordHash+辅助查询) - DatabaseCollection:xUnit串行测试集合(共享cnc_test库) - 14个Controller测试文件覆盖所有API端点: Health(1) + Auth(6) + Brand(15) + Machine(10) + CollectAddress(10) + Worker(13) + Dashboard(9) + Settings(15) + Production(6) + Alert(7) + Log(4) + ScreenConfig(12) + Screen(11) + Option(8) = 127个测试 - 直接实例化Controller调用方法,不经过HTTP管线 - 使用真实数据库(cnc_test库),与Service.Tests共享同一测试库 |
1 week ago | |
|---|---|---|
| .. | ||
| AlertControllerTests.cs | 1 week ago | |
| AuthControllerTests.cs | 1 week ago | |
| BrandControllerTests.cs | 1 week ago | |
| CncWebApi.Tests.csproj | 1 week ago | |
| CollectAddressControllerTests.cs | 1 week ago | |
| ControllerFactory.cs | 1 week ago | |
| DashboardControllerTests.cs | 1 week ago | |
| DatabaseCollection.cs | 1 week ago | |
| HealthControllerTests.cs | 1 week ago | |
| LogControllerTests.cs | 1 week ago | |
| MachineControllerTests.cs | 1 week ago | |
| OptionControllerTests.cs | 1 week ago | |
| ProductionControllerTests.cs | 1 week ago | |
| ScreenConfigControllerTests.cs | 1 week ago | |
| ScreenControllerTests.cs | 1 week ago | |
| SettingsControllerTests.cs | 1 week ago | |
| TestDb.cs | 1 week ago | |
| WorkerControllerTests.cs | 1 week ago | |