mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Implements authorization caching and check in the web client
This commit is contained in:
1 parent
7bca5b1ba3
commit
8eb1b9f13c
108 files changed
+5931
-73
No files matched your search
+6
@@ -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 { }
|
||||
+2
-3
@@ -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 { }
|
||||
+1
-1
@@ -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>()
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user