Removes the option to disable theme scripts

This commit is contained in:
BinaryAlley committed 2026-08-21 11:47:16 -07:00
1 parent 531450b3db
commit 15945c2e56
17 files changed
+15 -201

No files matched your search

@@ -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()
);
}