mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Removes the option to disable theme scripts
This commit is contained in:
1 parent
531450b3db
commit
15945c2e56
17 files changed
+15
-201
No files matched your search
-3
@@ -18,18 +18,15 @@ public class ThemeSettingsResponseDtoFixture
|
||||
/// Creates a new <see cref="ThemeSettingsResponseDto"/> instance with randomized test data.
|
||||
/// </summary>
|
||||
/// <param name="maxArchiveBytes">Optional maximum allowed archive size, in bytes.</param>
|
||||
/// <param name="allowThemeScripts">Whether theme templates may load script files.</param>
|
||||
/// <param name="defaultThemeId">Optional identifier of the fallback theme.</param>
|
||||
/// <returns>A configured <see cref="ThemeSettingsResponseDto"/> instance.</returns>
|
||||
public ThemeSettingsResponseDto Create(
|
||||
long? maxArchiveBytes = null,
|
||||
bool? allowThemeScripts = null,
|
||||
string? defaultThemeId = null)
|
||||
{
|
||||
Faker faker = new();
|
||||
return new ThemeSettingsResponseDto(
|
||||
MaxArchiveBytes: maxArchiveBytes ?? faker.Random.Long(1024 * 1024, 256 * 1024 * 1024),
|
||||
AllowThemeScripts: allowThemeScripts ?? faker.Random.Bool(),
|
||||
DefaultThemeId: defaultThemeId ?? faker.Lorem.Word()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user