mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Adapts the tests and fixtures to the refactored domain and persistence layers
This commit is contained in:
1 parent
e6f0c63feb
commit
ef913f5c9e
99 files changed
+612
-171
No files matched your search
+1
-1
@@ -60,7 +60,7 @@ public class GetPermissionsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ public class AddRoleEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
AddRoleRequest request = _addRoleRequestFixture.Create(roleName: "Admin", permissions: [Guid.NewGuid()]);
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public class DeleteRoleEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
DeleteRoleRequest request = _deleteRoleRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ public class GetRolePermissionsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetRolePermissionsRequest request = _getRolePermissionsRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class GetRolesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ public class UpdateRoleEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdateRoleRequest request = _updateRoleRequestFixture.Create(roleName: "UpdatedAdmin");
|
||||
|
||||
+2
-2
@@ -56,7 +56,7 @@ public class GetDrivesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -81,7 +81,7 @@ public class GetDrivesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetDrivesQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetDrivesQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ public class GetTypeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetFileSystemQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetFileSystemQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+3
-3
@@ -57,7 +57,7 @@ public class CombinePathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CombinePathRequest request = _combinePathRequestFixture.Create("InvalidPath", "TestUser");
|
||||
@@ -83,7 +83,7 @@ public class CombinePathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CombinePathRequest request = _combinePathRequestFixture.Create("InvalidPath", "TestUser");
|
||||
@@ -109,7 +109,7 @@ public class CombinePathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendCombinePathCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendCombinePathCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
CombinePathRequest request = _combinePathRequestFixture.Create("C:\\Users", "TestUser");
|
||||
|
||||
+3
-3
@@ -60,7 +60,7 @@ public class GetPathParentEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathParentRequest request = _getPathParentRequestFixture.Create(@"C:\Users\TestUser");
|
||||
@@ -86,7 +86,7 @@ public class GetPathParentEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathParentRequest request = _getPathParentRequestFixture.Create(@"InvalidPath");
|
||||
@@ -112,7 +112,7 @@ public class GetPathParentEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPathParentQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPathParentQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
GetPathParentRequest request = _getPathParentRequestFixture.Create(@"C:\Users\TestUser");
|
||||
|
||||
+3
-3
@@ -58,7 +58,7 @@ public class GetPathRootEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathRootRequest request = _getPathRootRequestFixture.Create(@"C:\Users\TestUser");
|
||||
@@ -84,7 +84,7 @@ public class GetPathRootEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathRootRequest request = _getPathRootRequestFixture.Create(@"InvalidPath");
|
||||
@@ -110,7 +110,7 @@ public class GetPathRootEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPathRootQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPathRootQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
GetPathRootRequest request = _getPathRootRequestFixture.Create(@"C:\Users\TestUser");
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class GetPathSeparatorEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPathSeparatorQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPathSeparatorQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -59,7 +59,7 @@ public class SplitPathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
SplitPathRequest request = _splitPathRequestFixture.Create(@"InvalidPath");
|
||||
@@ -86,7 +86,7 @@ public class SplitPathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendSplitPathCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendSplitPathCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
SplitPathRequest request = _splitPathRequestFixture.Create(@"C:\Users\TestUser\Documents");
|
||||
|
||||
+2
-2
@@ -58,7 +58,7 @@ public class ValidatePathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendValidatePathQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendValidatePathQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
ValidatePathRequest request = _validatePathRequestFixture.Create(@"C:\Users\TestUser\Documents");
|
||||
@@ -76,7 +76,7 @@ public class ValidatePathEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
ValidatePathRequest request = _validatePathRequestFixture.Create(@"C:\Users\TestUser\Documents");
|
||||
|
||||
+2
-2
@@ -60,7 +60,7 @@ public class GetThumbnailEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThumbnailRequest request = _getThumbnailRequestFixture.Create("/path/to/nonexistent/file.jpg", 80);
|
||||
@@ -86,7 +86,7 @@ public class GetThumbnailEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThumbnailRequest request = _getThumbnailRequestFixture.Create("/path/to/nonexistent/file.jpg", 80);
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class AddLibraryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsConflictError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
AddLibraryRequest request = _addLibraryRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -48,7 +48,7 @@ public class CancelLibrariesScanEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -73,7 +73,7 @@ public class CancelLibrariesScanEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendCancelLibrariesScanCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendCancelLibrariesScanCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public class CancelLibraryScanEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancelLibraryScanRequest request = _cancelLibraryScanRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class DeleteLibraryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
DeleteLibraryRequest request = _deleteLibraryRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ public class GetEnabledLibrariesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -80,7 +80,7 @@ public class GetEnabledLibrariesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetEnabledLibrariesQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetEnabledLibrariesQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ public class GetLibrariesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -80,7 +80,7 @@ public class GetLibrariesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetLibrariesQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetLibrariesQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ public class GetLibraryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetLibraryRequest request = _getLibraryRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class GetLibraryScanProgressEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetLibraryScanProgressRequest request = _getLibraryScanProgressRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -60,7 +60,7 @@ public class GetRunningLibraryScansEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -85,7 +85,7 @@ public class GetRunningLibraryScansEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetRunningLibraryScansQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetRunningLibraryScansQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -59,7 +59,7 @@ public class ScanLibrariesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -84,7 +84,7 @@ public class ScanLibrariesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendScanLibrariesCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendScanLibrariesCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class ScanLibraryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
ScanLibraryRequest request = _scanLibraryRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class UpdateLibraryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdateLibraryRequest request = _updateLibraryRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class CheckInitializationEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendCheckInitializationQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendCheckInitializationQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class SetupApplicationEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsConflictError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
RegistrationRequest request = _registrationRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public class GetLibraryArtworkProvidersEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetLibraryArtworkProvidersRequest request = _getLibraryArtworkProvidersRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public class GetLibraryMetadataProvidersEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetLibraryMetadataProvidersRequest request = _getLibraryMetadataProvidersRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ public class GetPluginSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPluginSettingsRequest request = _getPluginSettingsRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -56,7 +56,7 @@ public class GetPluginsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -81,7 +81,7 @@ public class GetPluginsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPluginsQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetPluginsQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class ReorderLibraryArtworkProvidersEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
ReorderLibraryArtworkProvidersRequest request = _reorderLibraryArtworkProvidersRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ public class ReorderLibraryMetadataProvidersEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
ReorderLibraryMetadataProvidersRequest request = _reorderLibraryMetadataProvidersRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class SetLibraryArtworkProviderEnabledEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
SetLibraryArtworkProviderEnabledRequest request = _setLibraryArtworkProviderEnabledRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class SetLibraryMetadataProviderEnabledEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
SetLibraryMetadataProviderEnabledRequest request = _setLibraryMetadataProviderEnabledRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class UpdatePluginSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdatePluginSettingsRequest request = _updatePluginSettingsRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -66,7 +66,7 @@ public class AddScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
AddScheduledJobRequest request = _addScheduledJobRequestFixture.Create();
|
||||
@@ -86,7 +86,7 @@ public class AddScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
AddScheduledJobRequest request = _addScheduledJobRequestFixture.Create(
|
||||
|
||||
+3
-3
@@ -66,7 +66,7 @@ public class FireScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
FireScheduledJobRequest request = _fireScheduledJobRequestFixture.Create();
|
||||
@@ -86,7 +86,7 @@ public class FireScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorized_ShouldReturnForbiddenProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
FireScheduledJobRequest request = _fireScheduledJobRequestFixture.Create();
|
||||
@@ -103,7 +103,7 @@ public class FireScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
FireScheduledJobRequest request = _fireScheduledJobRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -61,7 +61,7 @@ public class GetScheduledJobHistoryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsUnauthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetScheduledJobHistoryRequest request = _getScheduledJobHistoryRequestFixture.Create();
|
||||
@@ -78,7 +78,7 @@ public class GetScheduledJobHistoryEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
GetScheduledJobHistoryRequest request = _getScheduledJobHistoryRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -56,7 +56,7 @@ public class GetScheduledJobsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsUnauthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -72,7 +72,7 @@ public class GetScheduledJobsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ public class GetSchedulerDisplayPreferencesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsUnauthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -70,7 +70,7 @@ public class GetSchedulerDisplayPreferencesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+3
-3
@@ -55,7 +55,7 @@ public class RemoveScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
RemoveScheduledJobRequest request = _removeScheduledJobRequestFixture.Create();
|
||||
@@ -73,7 +73,7 @@ public class RemoveScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorized_ShouldReturnForbiddenProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
RemoveScheduledJobRequest request = _removeScheduledJobRequestFixture.Create();
|
||||
@@ -90,7 +90,7 @@ public class RemoveScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
RemoveScheduledJobRequest request = _removeScheduledJobRequestFixture.Create();
|
||||
|
||||
+3
-3
@@ -61,7 +61,7 @@ public class StartScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotFoundError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
StartScheduledJobRequest request = _startScheduledJobRequestFixture.Create();
|
||||
@@ -79,7 +79,7 @@ public class StartScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorized_ShouldReturnForbiddenProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
StartScheduledJobRequest request = _startScheduledJobRequestFixture.Create();
|
||||
@@ -96,7 +96,7 @@ public class StartScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
StartScheduledJobRequest request = _startScheduledJobRequestFixture.Create();
|
||||
|
||||
+3
-3
@@ -61,7 +61,7 @@ public class StopScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
StopScheduledJobRequest request = _stopScheduledJobRequestFixture.Create();
|
||||
@@ -79,7 +79,7 @@ public class StopScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorized_ShouldReturnForbiddenProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
StopScheduledJobRequest request = _stopScheduledJobRequestFixture.Create();
|
||||
@@ -96,7 +96,7 @@ public class StopScheduledJobEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
StopScheduledJobRequest request = _stopScheduledJobRequestFixture.Create();
|
||||
|
||||
+3
-3
@@ -55,7 +55,7 @@ public class UpdateSchedulerDisplayPreferencesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdateSchedulerDisplayPreferencesRequest request = _updateSchedulerDisplayPreferencesRequestFixture.Create();
|
||||
@@ -73,7 +73,7 @@ public class UpdateSchedulerDisplayPreferencesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorized_ShouldReturnForbiddenProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsNotAuthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdateSchedulerDisplayPreferencesRequest request = _updateSchedulerDisplayPreferencesRequestFixture.Create();
|
||||
@@ -90,7 +90,7 @@ public class UpdateSchedulerDisplayPreferencesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendMappedCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
UpdateSchedulerDisplayPreferencesRequest request = _updateSchedulerDisplayPreferencesRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -129,7 +129,7 @@ public class DeleteThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
DeleteThemeRequest request = _deleteThemeRequestFixture.Create();
|
||||
@@ -155,7 +155,7 @@ public class DeleteThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendDeleteThemeCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendDeleteThemeCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
DeleteThemeRequest request = _deleteThemeRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -129,7 +129,7 @@ public class RestoreThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
RestoreThemeRequest request = _restoreThemeRequestFixture.Create();
|
||||
@@ -155,7 +155,7 @@ public class RestoreThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendRestoreThemeCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendRestoreThemeCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
RestoreThemeRequest request = _restoreThemeRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -110,7 +110,7 @@ public class SetCurrentThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
SetCurrentThemeRequest request = _setCurrentThemeRequestFixture.Create();
|
||||
@@ -136,7 +136,7 @@ public class SetCurrentThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendSetCurrentThemeCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendSetCurrentThemeCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
SetCurrentThemeRequest request = _setCurrentThemeRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ public class GetCurrentThemeEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetCurrentThemeQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetCurrentThemeQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -87,7 +87,7 @@ public class GetThemeArchiveEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThemeArchiveRequest request = _getThemeArchiveRequestFixture.Create();
|
||||
@@ -113,7 +113,7 @@ public class GetThemeArchiveEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeArchiveQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeArchiveQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
GetThemeArchiveRequest request = _getThemeArchiveRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -86,7 +86,7 @@ public class GetThemeAssetEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThemeAssetRequest request = _getThemeAssetRequestFixture.Create();
|
||||
@@ -112,7 +112,7 @@ public class GetThemeAssetEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeAssetQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeAssetQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
GetThemeAssetRequest request = _getThemeAssetRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ public class GetThemeSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeSettingsQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeSettingsQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -84,7 +84,7 @@ public class GetThemeTemplateEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationError_ShouldReturnValidationProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThemeTemplateRequest request = _getThemeTemplateRequestFixture.Create();
|
||||
@@ -110,7 +110,7 @@ public class GetThemeTemplateEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeTemplateQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemeTemplateQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
GetThemeTemplateRequest request = _getThemeTemplateRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ public class GetThemesEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemesQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetThemesQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class ChangePasswordEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
ChangePasswordRequest request = _changePasswordRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class GetUsersEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class LoginEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
LoginRequest request = _loginRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class RecoverPasswordEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
RecoverPasswordRequest request = _recoverPasswordRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class RegisterEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
RegistrationRequest request = _registrationRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ public class GetAuthorizationEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsUnauthorizedError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetAuthorizationRequest request = _getAuthorizationRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ public class GetUserPermissionsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetUserPermissionsRequest request = _getUserPermissionsRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class GetUserRoleEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
GetUserRoleRequest request = _getUserRoleRequestFixture.Create();
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ public class UpdateUserRoleAndPermissionsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdateUserRoleAndPermissionsRequest request = _updateUserRoleAndPermissionsRequestFixture.Create();
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ public class GetUserSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsFailureError_ShouldReturnProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
@@ -76,7 +76,7 @@ public class GetUserSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetUserSettingsQueryToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendGetUserSettingsQueryToSender()
|
||||
{
|
||||
// Arrange
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ public class UpdateUserSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsError_ShouldReturnProblemResult()
|
||||
public async Task ExecuteAsync_WhenHandlerReturnsValidationErrors_ShouldReturnValidationProblemResult()
|
||||
{
|
||||
// Arrange
|
||||
UpdateUserSettingsRequest request = _updateUserSettingsRequestFixture.Create(isPaginationEnabled: true, itemsPerPage: 0, shouldIgnoreThePrefixForAlphaPicker: false, isThemeCachingEnabled: true, shouldAggregateMetadataWhenMissing: false);
|
||||
@@ -75,7 +75,7 @@ public class UpdateUserSettingsEndpointTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendUpdateUserSettingsCommandToHandler()
|
||||
public async Task ExecuteAsync_WhenCalled_ShouldSendUpdateUserSettingsCommandToSender()
|
||||
{
|
||||
// Arrange
|
||||
UpdateUserSettingsRequest request = _updateUserSettingsRequestFixture.Create(isPaginationEnabled: true, itemsPerPage: 24, shouldIgnoreThePrefixForAlphaPicker: true, isThemeCachingEnabled: true, shouldAggregateMetadataWhenMissing: false);
|
||||
|
||||
Reference in new issue
Block a user