Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.
This commit is contained in:
@@ -3,11 +3,8 @@ using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Microsoft.Extensions.Options;
|
||||
using StellaOps.Scanner.Surface.Env;
|
||||
using StellaOps.Scanner.Surface.Validation;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Scanner.Surface.Validation.Tests;
|
||||
|
||||
@@ -41,7 +38,7 @@ public sealed class SurfaceValidatorRunnerTests
|
||||
|
||||
var context = SurfaceValidationContext.Create(services, "TestComponent", environment);
|
||||
|
||||
await Assert.ThrowsAsync<SurfaceValidationException>(() => runner.EnsureAsync(context));
|
||||
await Assert.ThrowsAsync<SurfaceValidationException>(() => runner.EnsureAsync(context).AsTask());
|
||||
}
|
||||
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
@@ -136,8 +133,7 @@ public sealed class SurfaceValidatorRunnerTests
|
||||
private static ServiceProvider CreateServices(Action<IServiceCollection>? configure = null)
|
||||
{
|
||||
var services = new ServiceCollection();
|
||||
services.AddSingleton<ILogger<LoggingSurfaceValidationReporter>>(_ => NullLogger<LoggingSurfaceValidationReporter>.Instance);
|
||||
services.AddSingleton<ILogger<SurfaceValidatorRunner>>(_ => NullLogger<SurfaceValidatorRunner>.Instance);
|
||||
services.AddLogging(builder => builder.ClearProviders());
|
||||
services.AddOptions();
|
||||
services.AddSurfaceValidation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user