mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Standardizes boolean naming across the stack
This commit is contained in:
1 parent
6bd0cf6d42
commit
37dff6039d
78 files changed
+252
-252
No files matched your search
+3
-3
@@ -18,9 +18,9 @@ public class GetDirectoriesQueryFixture
|
||||
/// Creates a random valid query to get directories.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created query to get directories.</returns>
|
||||
public GetDirectoriesQuery Create(string? path = null, bool includeHiddenElements = false)
|
||||
public GetDirectoriesQuery Create(string? path = null, bool shouldIncludeHiddenElements = false)
|
||||
{
|
||||
return new Faker<GetDirectoriesQuery>()
|
||||
.CustomInstantiator(f => new GetDirectoriesQuery(
|
||||
@@ -28,7 +28,7 @@ public class GetDirectoriesQueryFixture
|
||||
default
|
||||
))
|
||||
.RuleFor(x => x.Path, f => path ?? f.System.DirectoryPath())
|
||||
.RuleFor(x => x.IncludeHiddenElements, f => includeHiddenElements);
|
||||
.RuleFor(x => x.ShouldIncludeHiddenElements, f => shouldIncludeHiddenElements);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ public class GetFilesQueryFixture
|
||||
/// Creates a random valid query to get files.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created query to get files.</returns>
|
||||
public GetFilesQuery Create(string? path = null, bool includeHiddenElements = false)
|
||||
public GetFilesQuery Create(string? path = null, bool shouldIncludeHiddenElements = false)
|
||||
{
|
||||
return new Faker<GetFilesQuery>()
|
||||
.CustomInstantiator(f => new GetFilesQuery(
|
||||
@@ -28,7 +28,7 @@ public class GetFilesQueryFixture
|
||||
default
|
||||
))
|
||||
.RuleFor(x => x.Path, f => path ?? f.System.FilePath())
|
||||
.RuleFor(x => x.IncludeHiddenElements, f => includeHiddenElements);
|
||||
.RuleFor(x => x.ShouldIncludeHiddenElements, f => shouldIncludeHiddenElements);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ public class GetTreeFilesQueryFixture
|
||||
/// Creates a random valid query to get tree files.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created query to get tree files.</returns>
|
||||
public GetTreeFilesQuery Create(string? path = null, bool includeHiddenElements = false)
|
||||
public GetTreeFilesQuery Create(string? path = null, bool shouldIncludeHiddenElements = false)
|
||||
{
|
||||
return new Faker<GetTreeFilesQuery>()
|
||||
.CustomInstantiator(f => new GetTreeFilesQuery(
|
||||
@@ -28,7 +28,7 @@ public class GetTreeFilesQueryFixture
|
||||
default
|
||||
))
|
||||
.RuleFor(x => x.Path, f => path ?? f.System.FilePath())
|
||||
.RuleFor(x => x.IncludeHiddenElements, f => includeHiddenElements);
|
||||
.RuleFor(x => x.ShouldIncludeHiddenElements, f => shouldIncludeHiddenElements);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ public class CheckPathExistsQueryFixture
|
||||
/// Creates a random valid query to check if paths exist.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created query.</returns>
|
||||
public CheckPathExistsQuery Create(string? path = null, bool includeHiddenElements = true)
|
||||
public CheckPathExistsQuery Create(string? path = null, bool shouldIncludeHiddenElements = true)
|
||||
{
|
||||
return new Faker<CheckPathExistsQuery>()
|
||||
.CustomInstantiator(f => new CheckPathExistsQuery(
|
||||
@@ -28,7 +28,7 @@ public class CheckPathExistsQueryFixture
|
||||
default
|
||||
))
|
||||
.RuleFor(x => x.Path, f => path ?? f.System.FilePath())
|
||||
.RuleFor(x => x.IncludeHiddenElements, includeHiddenElements);
|
||||
.RuleFor(x => x.ShouldIncludeHiddenElements, shouldIncludeHiddenElements);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
+3
-3
@@ -20,15 +20,15 @@ public class GetDirectoriesRequestFixture
|
||||
/// Creates a <see cref="GetDirectoriesRequest"/> with default or random values.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path for which to get the directories.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created <see cref="GetDirectoriesRequest"/>.</returns>
|
||||
public GetDirectoriesRequest Create(
|
||||
string? path = null,
|
||||
bool? includeHiddenElements = null)
|
||||
bool? shouldIncludeHiddenElements = null)
|
||||
{
|
||||
return new GetDirectoriesRequest(
|
||||
Path: path ?? _faker.System.FilePath(),
|
||||
IncludeHiddenElements: includeHiddenElements ?? _faker.Random.Bool()
|
||||
ShouldIncludeHiddenElements: shouldIncludeHiddenElements ?? _faker.Random.Bool()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -20,15 +20,15 @@ public class GetFilesRequestFixture
|
||||
/// Creates a <see cref="GetFilesRequest"/> with default or random values.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path for which to get the files.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created <see cref="GetFilesRequest"/>.</returns>
|
||||
public GetFilesRequest Create(
|
||||
string? path = null,
|
||||
bool? includeHiddenElements = null)
|
||||
bool? shouldIncludeHiddenElements = null)
|
||||
{
|
||||
return new GetFilesRequest(
|
||||
Path: path ?? _faker.System.FilePath(),
|
||||
IncludeHiddenElements: includeHiddenElements ?? _faker.Random.Bool()
|
||||
ShouldIncludeHiddenElements: shouldIncludeHiddenElements ?? _faker.Random.Bool()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -20,15 +20,15 @@ public class GetTreeFilesRequestFixture
|
||||
/// Creates a <see cref="GetTreeFilesRequest"/> with default or random values.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The file system path for which to get the tree files.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created <see cref="GetTreeFilesRequest"/>.</returns>
|
||||
public GetTreeFilesRequest Create(
|
||||
string? path = null,
|
||||
bool? includeHiddenElements = null)
|
||||
bool? shouldIncludeHiddenElements = null)
|
||||
{
|
||||
return new GetTreeFilesRequest(
|
||||
Path: path ?? _faker.System.FilePath(),
|
||||
IncludeHiddenElements: includeHiddenElements ?? _faker.Random.Bool()
|
||||
ShouldIncludeHiddenElements: shouldIncludeHiddenElements ?? _faker.Random.Bool()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -20,15 +20,15 @@ public class CheckPathExistsRequestFixture
|
||||
/// Creates a <see cref="CheckPathExistsRequest"/> with default or random values.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional. The path to check.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>The created <see cref="CheckPathExistsRequest"/>.</returns>
|
||||
public CheckPathExistsRequest Create(
|
||||
string? path = null,
|
||||
bool? includeHiddenElements = null)
|
||||
bool? shouldIncludeHiddenElements = null)
|
||||
{
|
||||
return new CheckPathExistsRequest(
|
||||
Path: path ?? _faker.System.FilePath(),
|
||||
IncludeHiddenElements: includeHiddenElements ?? _faker.Random.Bool()
|
||||
ShouldIncludeHiddenElements: shouldIncludeHiddenElements ?? _faker.Random.Bool()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -17,15 +17,15 @@ public class GetDirectoriesRequestFixture
|
||||
/// Creates a new <see cref="GetDirectoriesRequest"/> instance with randomized test data.
|
||||
/// </summary>
|
||||
/// <param name="path">Optional file system path whose directories are retrieved.</param>
|
||||
/// <param name="includeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <param name="shouldIncludeHiddenElements">Whether to include hidden file system elements or not.</param>
|
||||
/// <returns>A configured <see cref="GetDirectoriesRequest"/> instance.</returns>
|
||||
public GetDirectoriesRequest Create(
|
||||
string? path = null,
|
||||
bool includeHiddenElements = false)
|
||||
bool shouldIncludeHiddenElements = false)
|
||||
{
|
||||
return new GetDirectoriesRequest(
|
||||
Path: path ?? $"/media/{System.Guid.NewGuid():N}",
|
||||
IncludeHiddenElements: includeHiddenElements
|
||||
ShouldIncludeHiddenElements: shouldIncludeHiddenElements
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user