mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Adds unlit color to hidden file system browser dialog elements.
This commit is contained in:
1 parent
3f7cc2c60f
commit
b46dce745b
58 files changed
+855
-360
No files matched your search
+4
-2
@@ -19,14 +19,16 @@ public class FileSystemItemDtoFixture
|
||||
/// <summary>
|
||||
/// Creates a random valid <see cref="FileSystemItemDto"/>.
|
||||
/// </summary>
|
||||
/// <param name="isHidden">Optional. Whether the file system item is hidden. If not provided, a random value is generated.</param>
|
||||
/// <returns>The created <see cref="FileSystemItemDto"/>.</returns>
|
||||
public FileSystemItemDto Create()
|
||||
public FileSystemItemDto Create(bool? isHidden = null)
|
||||
{
|
||||
return new FileSystemItemDto(
|
||||
_faker.System.FilePath(),
|
||||
_faker.System.FileName(),
|
||||
_faker.Date.Past(),
|
||||
_faker.Date.Recent()
|
||||
_faker.Date.Recent(),
|
||||
isHidden ?? _faker.Random.Bool()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user