Adds hidden elements option to file system browser directories and paths

This commit is contained in:
BinaryAlley committed 2024-10-11 20:37:43 +03:00
1 parent 15a1881495
commit b3db46ed5f
18 files changed
+217 -59

No files matched your search

@@ -634,7 +634,7 @@ public class PathControllerTests
.Returns(expectedResponse);
// Act
IActionResult result = await _sut.CheckPathExists(path, cancellationToken);
IActionResult result = await _sut.CheckPathExists(path, true, cancellationToken);
// Assert
OkObjectResult okResult = result.Should().BeOfType<OkObjectResult>().Subject;
@@ -652,7 +652,7 @@ public class PathControllerTests
.Returns(new PathExistsResponse(true));
// Act
await _sut.CheckPathExists(path, cancellationToken);
await _sut.CheckPathExists(path, true, cancellationToken);
// Assert
await _mockMediator.Received(1).Send(Arg.Is<CheckPathExistsQuery>(q => q.Path == path), Arg.Is(cancellationToken));
@@ -674,7 +674,7 @@ public class PathControllerTests
// Act & Assert
cts.CancelAfter(50);
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => _sut.CheckPathExists(path, cts.Token));
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => _sut.CheckPathExists(path, true, cts.Token));
}
#endregion
}