Implements directory browser dialog, part 6: hidden file system items toggle

This commit is contained in:
BinaryAlley committed 2024-09-24 11:10:03 +03:00
1 parent cd44f11d9e
commit debad9ef74
74 files changed
+596 -427

No files matched your search

@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using AutoFixture;
using Bogus;
using Lumina.Application.Core.WrittenContentLibrary.BooksLibrary.Books.Commands.AddBook;
@@ -263,9 +263,9 @@ public class AddBookCommandFixture
.RuleFor(x => x.LibraryThingId, f => f.Random.String2(f.Random.Number(1, 50)))
.RuleFor(x => x.GoogleBooksId, f =>
{
const string validChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
return new string(Enumerable.Repeat(validChars, 12)
.Select(s => s[f.Random.Number(validChars.Length - 1)])
const string VALID_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
return new string(Enumerable.Repeat(VALID_CHARS, 12)
.Select(s => s[f.Random.Number(VALID_CHARS.Length - 1)])
.ToArray());
})
.RuleFor(x => x.BarnesAndNobleId, f => f.Random.String2(10, "0123456789"))
@@ -344,4 +344,4 @@ public class AddBookCommandFixture
return input?.Length > maxLength ? input[..maxLength] : input;
}
#endregion
}
}