Align CI fixtures with camera config and release manifest
This commit is contained in:
1 parent
21084bf00e
commit
0cc950967e
6 files changed
+62
-15
No files matched your search
@@ -16,6 +16,7 @@ using Microsoft.AspNetCore.RateLimiting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NSubstitute;
|
||||
using Shouldly;
|
||||
|
||||
namespace Heimdall.Web.Tests.Security;
|
||||
@@ -37,6 +38,7 @@ public sealed class HttpIsolationTests
|
||||
builder.Services.AddSingleton<IApplicationDbContext>(f.Db);
|
||||
builder.Services.AddSingleton(f.Db);
|
||||
builder.Services.AddSingleton<ICameraAccessService>(f.Cameras);
|
||||
builder.Services.AddSingleton(Substitute.For<IConfigBroadcastService>());
|
||||
builder.Services.AddScoped<ResourceAccess>();
|
||||
builder.Services.AddMediatR(c => c.RegisterServicesFromAssemblyContaining<GetCameraQuery>());
|
||||
builder.Services.AddControllers(o => o.Filters.Add<ResourceAccessFilter>()).AddApplicationPart(typeof(CamerasController).Assembly);
|
||||
|
||||
Reference in new issue
Block a user