Implements authorization caching and check in the web client

This commit is contained in:
BinaryAlley committed 2024-12-06 18:46:48 +02:00
1 parent 7bca5b1ba3
commit 8eb1b9f13c
108 files changed
+5931 -73

No files matched your search

@@ -0,0 +1,6 @@
namespace Lumina.DataAccess.UnitTests.Core.Repositories.Common.Factory.Fixtures;
/// <summary>
/// Repository fixture interface for testing non registered repositories.
/// </summary>
public interface IUnregisteredRepository { }
@@ -6,6 +6,7 @@ using Lumina.Application.Common.Infrastructure.Time;
using Lumina.DataAccess.Common.DependencyInjection;
using Lumina.DataAccess.Core.Repositories.Common.Factory;
using Lumina.DataAccess.UnitTests.Common.Setup;
using Lumina.DataAccess.UnitTests.Core.Repositories.Common.Factory.Fixtures;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Diagnostics.CodeAnalysis;
@@ -50,8 +51,6 @@ public class RepositoryFactoryTests
// Act & Assert
Action act = () => repositoryFactory.CreateRepository<IUnregisteredRepository>();
act.Should().Throw<InvalidOperationException>().WithMessage("No service for type 'Lumina.DataAccess.UnitTests.Core.Repositories.Common.Factory.IUnregisteredRepository' has been registered.");
act.Should().Throw<InvalidOperationException>().WithMessage("No service for type 'Lumina.DataAccess.UnitTests.Core.Repositories.Common.Factory.Fixtures.IUnregisteredRepository' has been registered.");
}
}
public interface IUnregisteredRepository { }
@@ -101,7 +101,7 @@ public class UserEntityFixture
UserId = _fixture.Create<Guid>(),
Title = _fixture.Create<string>(),
LibraryType = _fixture.Create<LibraryType>(),
ContentLocations = new List<LibraryContentLocationEntity>(),
ContentLocations = [],
Created = _fixture.Create<DateTime>(),
Updated = _fixture.Create<DateTime>()
});