mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Inlines fixtures instantiation.
This commit is contained in:
1 parent
b648e2f054
commit
59e16d645a
147 files changed
+190
-898
No files matched your search
+1
-9
@@ -16,15 +16,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.FileSystemManagement.Commo
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class FileSystemTreeNodeResponseMappingTests
|
||||
{
|
||||
private readonly FileSystemTreeNodeResponseFixture _fileSystemTreeNodeResponseFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FileSystemTreeNodeResponseMappingTests"/> class.
|
||||
/// </summary>
|
||||
public FileSystemTreeNodeResponseMappingTests()
|
||||
{
|
||||
_fileSystemTreeNodeResponseFixture = new();
|
||||
}
|
||||
private readonly FileSystemTreeNodeResponseFixture _fileSystemTreeNodeResponseFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToWindowsRootItem_WhenMappingFileSystemTreeNodeResponse_ShouldMapCorrectly()
|
||||
|
||||
+1
-9
@@ -18,15 +18,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.FileSystemManagement.Direc
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class DirectoryMappingTests
|
||||
{
|
||||
private readonly DirectoryFixture _directoryFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DirectoryMappingTests"/> class.
|
||||
/// </summary>
|
||||
public DirectoryMappingTests()
|
||||
{
|
||||
_directoryFixture = new DirectoryFixture();
|
||||
}
|
||||
private readonly DirectoryFixture _directoryFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToFileSystemTreeNodeResponse_WhenMappingDirectory_ShouldMapCorrectly()
|
||||
|
||||
+5
-17
@@ -23,23 +23,11 @@ namespace Lumina.Application.UnitTests.Common.Mapping.FileSystemManagement.FileS
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class FileSystemItemMappingTests
|
||||
{
|
||||
private readonly FileSystemPathIdFixture _fileSystemPathIdFixture;
|
||||
private readonly DirectoryFixture _directoryFixture;
|
||||
private readonly FileFixture _fileFixture;
|
||||
private readonly WindowsRootItemFixture _windowsRootItemFixture;
|
||||
private readonly UnixRootItemFixture _unixRootItemFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FileSystemItemMappingTests"/> class.
|
||||
/// </summary>
|
||||
public FileSystemItemMappingTests()
|
||||
{
|
||||
_fileSystemPathIdFixture = new FileSystemPathIdFixture();
|
||||
_directoryFixture = new DirectoryFixture();
|
||||
_fileFixture = new FileFixture();
|
||||
_windowsRootItemFixture = new WindowsRootItemFixture();
|
||||
_unixRootItemFixture = new UnixRootItemFixture();
|
||||
}
|
||||
private readonly FileSystemPathIdFixture _fileSystemPathIdFixture = new();
|
||||
private readonly DirectoryFixture _directoryFixture = new();
|
||||
private readonly FileFixture _fileFixture = new();
|
||||
private readonly WindowsRootItemFixture _windowsRootItemFixture = new();
|
||||
private readonly UnixRootItemFixture _unixRootItemFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToFileSystemItemModel_WhenMappingFileSystemItem_ShouldMapCorrectly()
|
||||
|
||||
+1
-9
@@ -18,15 +18,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.FileSystemManagement.Files
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class FileMappingTests
|
||||
{
|
||||
private readonly FileFixture _fileFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FileMappingTests"/> class.
|
||||
/// </summary>
|
||||
public FileMappingTests()
|
||||
{
|
||||
_fileFixture = new();
|
||||
}
|
||||
private readonly FileFixture _fileFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToFileSystemTreeNodeResponse_WhenMappingFile_ShouldMapCorrectly()
|
||||
|
||||
-7
@@ -16,13 +16,6 @@ public class GetFilesRequestMappingTests
|
||||
{
|
||||
private readonly GetFilesRequestFixture _getFilesRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetFilesRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public GetFilesRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingGetFilesRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -16,13 +16,6 @@ public class GetTreeFilesRequestMappingTests
|
||||
{
|
||||
private readonly GetTreeFilesRequestFixture _getTreeFilesRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetTreeFilesRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public GetTreeFilesRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingGetTreeFilesRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class CheckPathExistsRequestMappingTests
|
||||
{
|
||||
private readonly CheckPathExistsRequestFixture _checkPathExistsRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CheckPathExistsRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public CheckPathExistsRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingCheckPathExistsRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class CombinePathRequestMappingTests
|
||||
{
|
||||
private readonly CombinePathRequestFixture _combinePathRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CombinePathRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public CombinePathRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToCommand_WhenMappingCombinePathRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class GetPathParentRequestMappingTests
|
||||
{
|
||||
private readonly GetPathParentRequestFixture _getPathParentRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetPathParentRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public GetPathParentRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingGetPathParentRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class GetPathRootRequestMappingTests
|
||||
{
|
||||
private readonly GetPathRootRequestFixture _getPathRootRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetPathRootRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public GetPathRootRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingGetPathRootRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class SplitPathRequestMappingTests
|
||||
{
|
||||
private readonly SplitPathRequestFixture _splitPathRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SplitPathRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public SplitPathRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToCommand_WhenMappingSplitPathRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class ValidatePathRequestMappingTests
|
||||
{
|
||||
private readonly ValidatePathRequestFixture _validatePathRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ValidatePathRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public ValidatePathRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingValidatePathRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
-7
@@ -18,13 +18,6 @@ public class GetThumbnailRequestMappingTests
|
||||
{
|
||||
private readonly GetThumbnailRequestFixture _getThumbnailRequestFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetThumbnailRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public GetThumbnailRequestMappingTests()
|
||||
{
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ToQuery_WhenMappingGetThumbnailRequest_ShouldMapCorrectly()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user