mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Replaces ErrorOr library with a custom implementation.
This commit is contained in:
1 parent
8fe90a4dde
commit
3b772d68ca
436 files changed
+4234
-3922
No files matched your search
+4
-4
@@ -1,9 +1,9 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
using Lumina.Application.Common.Mapping.FileSystemManagement.FileSystem;
|
||||
using Lumina.Contracts.Responses.FileSystemManagement.Common;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
@@ -19,8 +19,8 @@ public class UnixRootItemMappingTests
|
||||
public void ToTreeNodeResponse_WhenMappingUnixRootItem_ShouldMapCorrectly()
|
||||
{
|
||||
// Arrange
|
||||
ErrorOr<UnixRootItem> createResult = UnixRootItem.Create();
|
||||
Assert.False(createResult.IsError);
|
||||
Result<UnixRootItem> createResult = UnixRootItem.Create();
|
||||
Assert.False(createResult.IsFailure);
|
||||
UnixRootItem domainModel = createResult.Value;
|
||||
|
||||
// Act
|
||||
|
||||
+6
-6
@@ -1,9 +1,9 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
using Lumina.Application.Common.Mapping.FileSystemManagement.FileSystem;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
|
||||
using Lumina.Contracts.Responses.FileSystemManagement.Common;
|
||||
using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
@@ -21,8 +21,8 @@ public class WindowsRootItemMappingTests
|
||||
// Arrange
|
||||
string path = "C:\\";
|
||||
string name = "C:";
|
||||
ErrorOr<WindowsRootItem> createResult = WindowsRootItem.Create(path, name);
|
||||
Assert.False(createResult.IsError);
|
||||
Result<WindowsRootItem> createResult = WindowsRootItem.Create(path, name);
|
||||
Assert.False(createResult.IsFailure);
|
||||
WindowsRootItem domainModel = createResult.Value;
|
||||
|
||||
// Act
|
||||
@@ -45,8 +45,8 @@ public class WindowsRootItemMappingTests
|
||||
string path = "D:\\";
|
||||
string name = "D:";
|
||||
FileSystemItemStatus customStatus = FileSystemItemStatus.Inaccessible;
|
||||
ErrorOr<WindowsRootItem> createResult = WindowsRootItem.Create(path, name, customStatus);
|
||||
Assert.False(createResult.IsError);
|
||||
Result<WindowsRootItem> createResult = WindowsRootItem.Create(path, name, customStatus);
|
||||
Assert.False(createResult.IsFailure);
|
||||
WindowsRootItem domainModel = createResult.Value;
|
||||
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user