16 lines
390 B
C#
16 lines
390 B
C#
#nullable enable
|
|
|
|
namespace MBN_STOCK_WEBVIEW.Infrastructure.Tests;
|
|
|
|
internal sealed class DenyAllDatabaseMutationAuthorization
|
|
: IDatabaseMutationAuthorization
|
|
{
|
|
internal List<DatabaseMutationAuthorizationRequest> Requests { get; } = [];
|
|
|
|
public bool IsAuthorized(DatabaseMutationAuthorizationRequest request)
|
|
{
|
|
Requests.Add(request);
|
|
return false;
|
|
}
|
|
}
|