test(central-ui): fix the CentralUI.Tests build
Two stale references blocked compilation: the DataConnection page tests still pointed at Components.Pages.Admin (the pages moved to .Design), and ScriptAnalysisServiceTests constructed ScriptAnalysisService without the IServiceProvider parameter. The project now compiles.
This commit is contained in:
@@ -8,6 +8,7 @@ public class ScriptAnalysisServiceTests
|
||||
{
|
||||
private readonly ISharedScriptCatalog _catalog = Substitute.For<ISharedScriptCatalog>();
|
||||
private readonly IMemoryCache _cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 100 });
|
||||
private readonly IServiceProvider _services = Substitute.For<IServiceProvider>();
|
||||
private readonly ScriptAnalysisService _svc;
|
||||
|
||||
private static ScriptShape Shape(string name, params ParameterShape[] ps) =>
|
||||
@@ -19,7 +20,7 @@ public class ScriptAnalysisServiceTests
|
||||
public ScriptAnalysisServiceTests()
|
||||
{
|
||||
_catalog.GetShapesAsync().Returns(Array.Empty<ScriptShape>());
|
||||
_svc = new ScriptAnalysisService(_catalog, _cache);
|
||||
_svc = new ScriptAnalysisService(_catalog, _cache, _services);
|
||||
}
|
||||
|
||||
// ── Diagnose ──────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user