Adds the unit tests for the theming feature

This commit is contained in:
BinaryAlley committed 2026-08-21 09:43:10 -07:00
1 parent 9c83e5dfa7
commit baa6450406
47 files changed
+8234 -8

No files matched your search

@@ -0,0 +1,84 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.Requests.Themes;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Admin.Themes.DeleteTheme;
using Lumina.Presentation.Web.Core.Themes;
using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.HttpResults;
using NSubstitute;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Themes.DeleteTheme;
/// <summary>
/// Contains unit tests for the <see cref="DeleteThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class DeleteThemeEndpointTests
{
private readonly IApiHttpClient _mockApiHttpClient;
private readonly DeleteThemeEndpoint _sut;
/// <summary>
/// Initializes a new instance of the <see cref="DeleteThemeEndpointTests"/> class.
/// </summary>
public DeleteThemeEndpointTests()
{
_mockApiHttpClient = Substitute.For<IApiHttpClient>();
ThemeService themeService = new(_mockApiHttpClient);
_sut = Factory.Create<DeleteThemeEndpoint>(themeService);
}
[Fact]
public async Task ExecuteAsync_WhenThemeIdProvided_ShouldDeleteThemeAndReturnSuccessJson()
{
// Arrange
string themeId = "editorial-paper";
// Act
IResult result = await _sut.ExecuteAsync(new DeleteThemeRequest(themeId), CancellationToken.None);
string body = await JsonResultTestHelper.GetResponseBodyAsync(result);
// Assert
using (System.Text.Json.JsonDocument jsonDocument = System.Text.Json.JsonDocument.Parse(body))
{
Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean());
}
}
[Fact]
public async Task ExecuteAsync_WhenThemeIdProvided_ShouldDeleteThemeWithResolvedEndpoint()
{
// Arrange
string themeId = "editorial-paper";
string expectedEndpoint = ApiRoutes.Themes.DELETE_THEME.Replace("{themeId}", themeId);
// Act
await _sut.ExecuteAsync(new DeleteThemeRequest(themeId), CancellationToken.None);
// Assert
await _mockApiHttpClient.Received(1).DeleteAsync(expectedEndpoint, Arg.Any<CancellationToken>());
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act
IResult result = await _sut.ExecuteAsync(new DeleteThemeRequest(themeId), CancellationToken.None);
// Assert
ProblemHttpResult problemResult = Assert.IsType<ProblemHttpResult>(result);
Assert.Equal(StatusCodes.Status400BadRequest, problemResult.StatusCode);
await _mockApiHttpClient.DidNotReceive().DeleteAsync(Arg.Any<string>(), Arg.Any<CancellationToken>());
}
}
@@ -0,0 +1,87 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.DTO.FileSystemManagement;
using Lumina.Presentation.Web.Common.Requests.Themes;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Admin.Themes.DownloadTheme;
using Lumina.Presentation.Web.Core.Themes;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.HttpResults;
using NSubstitute;
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Themes.DownloadTheme;
/// <summary>
/// Contains unit tests for the <see cref="DownloadThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class DownloadThemeEndpointTests
{
private readonly IApiHttpClient _mockApiHttpClient;
private readonly DownloadThemeEndpoint _sut;
/// <summary>
/// Initializes a new instance of the <see cref="DownloadThemeEndpointTests"/> class.
/// </summary>
public DownloadThemeEndpointTests()
{
_mockApiHttpClient = Substitute.For<IApiHttpClient>();
ThemeService themeService = new(_mockApiHttpClient);
_sut = Factory.Create<DownloadThemeEndpoint>(themeService);
}
[Fact]
public async Task ExecuteAsync_WhenThemeIdProvided_ShouldReturnZipFileWithResolvedFileName()
{
// Arrange
string themeId = "editorial-paper";
_mockApiHttpClient.GetBlobAsync(Arg.Any<string>(), Arg.Any<CancellationToken>())
.Returns(new BlobDataDto { Data = [0x50, 0x4B, 0x03, 0x04], ContentType = "application/zip" });
// Act
IResult result = await _sut.ExecuteAsync(new GetThemeArchiveRequest(themeId), CancellationToken.None);
// Assert
FileStreamHttpResult fileResult = Assert.IsType<FileStreamHttpResult>(result);
Assert.Equal("application/zip", fileResult.ContentType);
Assert.Equal($"{themeId}.zip", fileResult.FileDownloadName);
}
[Fact]
public async Task ExecuteAsync_WhenThemeIdProvided_ShouldFetchArchiveWithResolvedEndpoint()
{
// Arrange
string themeId = "editorial-paper";
string expectedEndpoint = ApiRoutes.Themes.GET_THEME_ARCHIVE.Replace("{themeId}", themeId);
_mockApiHttpClient.GetBlobAsync(expectedEndpoint, Arg.Any<CancellationToken>())
.Returns(new BlobDataDto { Data = [1, 2, 3], ContentType = "application/zip" });
// Act
await _sut.ExecuteAsync(new GetThemeArchiveRequest(themeId), CancellationToken.None);
// Assert
await _mockApiHttpClient.Received(1).GetBlobAsync(expectedEndpoint, Arg.Any<CancellationToken>());
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act
IResult result = await _sut.ExecuteAsync(new GetThemeArchiveRequest(themeId), CancellationToken.None);
// Assert
ProblemHttpResult problemResult = Assert.IsType<ProblemHttpResult>(result);
Assert.Equal(StatusCodes.Status400BadRequest, problemResult.StatusCode);
await _mockApiHttpClient.DidNotReceive().GetBlobAsync(Arg.Any<string>(), Arg.Any<CancellationToken>());
}
}
@@ -0,0 +1,95 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.DTO.Themes;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Admin.Themes.GetThemes;
using Lumina.Presentation.Web.Core.Themes;
using Lumina.Presentation.Web.Fixtures.Common.DTO.Themes;
using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
using Microsoft.AspNetCore.Http;
using NSubstitute;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Themes.GetThemes;
/// <summary>
/// Contains unit tests for the <see cref="GetThemesEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class GetThemesEndpointTests
{
private readonly IApiHttpClient _mockApiHttpClient;
private readonly GetThemesEndpoint _sut;
private readonly ThemeResponseDtoFixture _themeResponseDtoFixture = new();
private readonly ThemeSettingsResponseDtoFixture _themeSettingsResponseDtoFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="GetThemesEndpointTests"/> class.
/// </summary>
public GetThemesEndpointTests()
{
_mockApiHttpClient = Substitute.For<IApiHttpClient>();
ThemeService themeService = new(_mockApiHttpClient);
_sut = Factory.Create<GetThemesEndpoint>(themeService);
}
[Fact]
public async Task ExecuteAsync_WhenApiReturnsThemes_ShouldReturnSuccessJsonWithThemeAdminData()
{
// Arrange
ThemeResponseDto[] themes =
[
_themeResponseDtoFixture.Create(themeId: "editorial-paper"),
_themeResponseDtoFixture.Create(themeId: "lumina-default")
];
ThemeResponseDto currentTheme = _themeResponseDtoFixture.Create(themeId: "lumina-default");
_mockApiHttpClient.GetAsync<ThemeResponseDto[]>(ApiRoutes.Themes.GET_THEMES, Arg.Any<CancellationToken>())
.Returns(themes);
_mockApiHttpClient.GetAsync<ThemeResponseDto>(ApiRoutes.Themes.GET_CURRENT_THEME, Arg.Any<CancellationToken>())
.Returns(currentTheme);
_mockApiHttpClient.GetAsync<ThemeSettingsResponseDto>(ApiRoutes.Themes.GET_THEME_SETTINGS, Arg.Any<CancellationToken>())
.Returns(_themeSettingsResponseDtoFixture.Create(maxArchiveBytes: 10 * 1024 * 1024, allowThemeScripts: true));
// Act
IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None);
string body = await JsonResultTestHelper.GetResponseBodyAsync(result);
// Assert
using (JsonDocument jsonDocument = JsonDocument.Parse(body))
{
Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean());
JsonElement data = jsonDocument.RootElement.GetProperty("data");
Assert.Equal(2, data.GetProperty("themes").GetArrayLength());
Assert.Equal("editorial-paper", data.GetProperty("themes")[0].GetProperty("id").GetString());
Assert.Equal("lumina-default", data.GetProperty("currentThemeId").GetString());
Assert.True(data.GetProperty("allowThemeScripts").GetBoolean());
Assert.Equal(10 * 1024 * 1024, data.GetProperty("maxArchiveBytes").GetInt64());
Assert.Equal(10.0, data.GetProperty("maxArchiveMegabytes").GetDouble());
}
}
[Fact]
public async Task ExecuteAsync_WhenCalled_ShouldLoadThemesCurrentThemeAndSettings()
{
// Arrange
_mockApiHttpClient.GetAsync<ThemeResponseDto[]>(ApiRoutes.Themes.GET_THEMES, Arg.Any<CancellationToken>())
.Returns([.. _themeResponseDtoFixture.CreateMany(2)]);
_mockApiHttpClient.GetAsync<ThemeResponseDto>(ApiRoutes.Themes.GET_CURRENT_THEME, Arg.Any<CancellationToken>())
.Returns(_themeResponseDtoFixture.Create());
_mockApiHttpClient.GetAsync<ThemeSettingsResponseDto>(ApiRoutes.Themes.GET_THEME_SETTINGS, Arg.Any<CancellationToken>())
.Returns(_themeSettingsResponseDtoFixture.Create());
// Act
await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None);
// Assert
await _mockApiHttpClient.Received(1).GetAsync<ThemeResponseDto[]>(ApiRoutes.Themes.GET_THEMES, Arg.Any<CancellationToken>());
await _mockApiHttpClient.Received(1).GetAsync<ThemeResponseDto>(ApiRoutes.Themes.GET_CURRENT_THEME, Arg.Any<CancellationToken>());
await _mockApiHttpClient.Received(1).GetAsync<ThemeSettingsResponseDto>(ApiRoutes.Themes.GET_THEME_SETTINGS, Arg.Any<CancellationToken>());
}
}
@@ -0,0 +1,103 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.DTO.Themes;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Admin.Themes.InstallTheme;
using Lumina.Presentation.Web.Core.Themes;
using Lumina.Presentation.Web.Fixtures.Common.DTO.Themes;
using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.Extensions.Primitives;
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Themes.InstallTheme;
/// <summary>
/// Contains unit tests for the <see cref="InstallThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class InstallThemeEndpointTests
{
private readonly IApiHttpClient _mockApiHttpClient;
private readonly InstallThemeEndpoint _sut;
private readonly ThemeResponseDtoFixture _themeResponseDtoFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="InstallThemeEndpointTests"/> class.
/// </summary>
public InstallThemeEndpointTests()
{
_mockApiHttpClient = Substitute.For<IApiHttpClient>();
ThemeService themeService = new(_mockApiHttpClient);
_sut = Factory.Create<InstallThemeEndpoint>(themeService);
}
[Fact]
public async Task ExecuteAsync_WhenArchiveUploaded_ShouldInstallThemeAndReturnSuccessJson()
{
// Arrange
ThemeResponseDto installedTheme = _themeResponseDtoFixture.Create(themeId: "installed-theme");
_mockApiHttpClient.PostMultipartAsync<ThemeResponseDto>(ApiRoutes.Themes.INSTALL_THEME, Arg.Any<Stream>(), Arg.Any<string>(), Arg.Any<string>(), Arg.Any<CancellationToken>())
.Returns(installedTheme);
ConfigureFormWithArchive([1, 2, 3, 4], "theme-pack.zip");
// Act
IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None);
string body = await JsonResultTestHelper.GetResponseBodyAsync(result);
// Assert
using (JsonDocument jsonDocument = JsonDocument.Parse(body))
{
Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean());
Assert.Equal("installed-theme", jsonDocument.RootElement.GetProperty("data").GetProperty("id").GetString());
}
await _mockApiHttpClient.Received(1).PostMultipartAsync<ThemeResponseDto>(
ApiRoutes.Themes.INSTALL_THEME,
Arg.Any<Stream>(),
"theme-pack.zip",
"archive",
Arg.Any<CancellationToken>());
}
[Fact]
public async Task ExecuteAsync_WhenNoArchiveUploaded_ShouldReturnProblemWithBadRequest()
{
// Arrange
IFormFeature formFeature = Substitute.For<IFormFeature>();
formFeature.Form.Returns(new FormCollection([]));
_sut.HttpContext.Features.Set(formFeature);
// Act
IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None);
// Assert
ProblemHttpResult problemResult = Assert.IsType<ProblemHttpResult>(result);
Assert.Equal(StatusCodes.Status400BadRequest, problemResult.StatusCode);
await _mockApiHttpClient.DidNotReceive().PostMultipartAsync<ThemeResponseDto>(Arg.Any<string>(), Arg.Any<Stream>(), Arg.Any<string>(), Arg.Any<string>(), Arg.Any<CancellationToken>());
}
private void ConfigureFormWithArchive(byte[] content, string fileName)
{
// the stream stays open for the duration of the test, since the endpoint reads it through the form file during execution
MemoryStream archiveStream = new(content);
IFormFile formFile = new FormFile(archiveStream, 0, content.Length, "archive", fileName);
FormFileCollection files = [formFile];
IFormCollection form = new FormCollection([], files);
_sut.HttpContext.Request.ContentType = "multipart/form-data; boundary=----test";
// a real FormFeature is used instead of a substitute, because the endpoint execution reads the form through the
// request machinery, which would bypass a mocked feature and parse the (empty) request body
_sut.HttpContext.Features.Set<IFormFeature>(new FormFeature(form));
}
}
@@ -0,0 +1,78 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.DTO.Themes;
using Lumina.Presentation.Web.Common.Requests.Themes;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Admin.Themes.SetCurrentTheme;
using Lumina.Presentation.Web.Core.Themes;
using Lumina.Presentation.Web.Fixtures.Common.DTO.Themes;
using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.HttpResults;
using NSubstitute;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Themes.SetCurrentTheme;
/// <summary>
/// Contains unit tests for the <see cref="SetCurrentThemeEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class SetCurrentThemeEndpointTests
{
private readonly IApiHttpClient _mockApiHttpClient;
private readonly SetCurrentThemeEndpoint _sut;
private readonly ThemeResponseDtoFixture _themeResponseDtoFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="SetCurrentThemeEndpointTests"/> class.
/// </summary>
public SetCurrentThemeEndpointTests()
{
_mockApiHttpClient = Substitute.For<IApiHttpClient>();
ThemeService themeService = new(_mockApiHttpClient);
_sut = Factory.Create<SetCurrentThemeEndpoint>(themeService);
}
[Fact]
public async Task ExecuteAsync_WhenThemeIdProvided_ShouldSetCurrentThemeAndReturnSuccessJson()
{
// Arrange
string themeId = "editorial-paper";
_mockApiHttpClient.PutAsync<ThemeResponseDto, object>(Arg.Any<string>(), Arg.Any<object>(), Arg.Any<CancellationToken>())
.Returns(_themeResponseDtoFixture.Create());
// Act
IResult result = await _sut.ExecuteAsync(new SetCurrentThemeRequest(themeId), CancellationToken.None);
string body = await JsonResultTestHelper.GetResponseBodyAsync(result);
// Assert
using (System.Text.Json.JsonDocument jsonDocument = System.Text.Json.JsonDocument.Parse(body))
Assert.True(jsonDocument.RootElement.GetProperty("success").GetBoolean());
await _mockApiHttpClient.Received(1).PutAsync<ThemeResponseDto, object>(
ApiRoutes.Themes.SET_CURRENT_THEME,
Arg.Is<object>(payload => (payload.GetType().GetProperty("ThemeId")!.GetValue(payload) as string) == themeId),
Arg.Any<CancellationToken>());
}
[Theory]
[InlineData(null)] // missing theme id
[InlineData("")] // empty theme id
[InlineData(" ")] // whitespace theme id
public async Task ExecuteAsync_WhenThemeIdIsBlank_ShouldReturnProblemWithBadRequest(string? themeId)
{
// Act
IResult result = await _sut.ExecuteAsync(new SetCurrentThemeRequest(themeId), CancellationToken.None);
// Assert
ProblemHttpResult problemResult = Assert.IsType<ProblemHttpResult>(result);
Assert.Equal(StatusCodes.Status400BadRequest, problemResult.StatusCode);
await _mockApiHttpClient.DidNotReceive().PutAsync<ThemeResponseDto, object>(Arg.Any<string>(), Arg.Any<object>(), Arg.Any<CancellationToken>());
}
}
@@ -0,0 +1,73 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
using Lumina.Presentation.Web.Common.Api;
using Lumina.Presentation.Web.Common.DTO.Themes;
using Lumina.Presentation.Web.Common.Http;
using Lumina.Presentation.Web.Common.Routes;
using Lumina.Presentation.Web.Core.Endpoints.Admin.Themes;
using Lumina.Presentation.Web.Core.Themes;
using Lumina.Presentation.Web.Fixtures.Common.DTO.Themes;
using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
using Microsoft.AspNetCore.Http;
using NSubstitute;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
#endregion
namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Admin.Themes;
/// <summary>
/// Contains unit tests for the <see cref="ThemesIndexViewEndpoint"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class ThemesIndexViewEndpointTests
{
private readonly IApiHttpClient _mockApiHttpClient;
private readonly ThemesIndexViewEndpoint _sut;
private readonly ThemeResponseDtoFixture _themeResponseDtoFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="ThemesIndexViewEndpointTests"/> class.
/// </summary>
public ThemesIndexViewEndpointTests()
{
_mockApiHttpClient = Substitute.For<IApiHttpClient>();
ThemeService themeService = new(_mockApiHttpClient);
_sut = Factory.Create<ThemesIndexViewEndpoint>(themeService);
TestHttpContextFactory.ConfigureSession(_sut.HttpContext, TestHttpContextFactory.CreateSession());
}
[Fact]
public async Task ExecuteAsync_WhenThemesAvailable_ShouldReturnRazorViewResult()
{
// Arrange
_mockApiHttpClient.GetAsync<ThemeResponseDto[]>(ApiRoutes.Themes.GET_THEMES, Arg.Any<CancellationToken>())
.Returns([.. _themeResponseDtoFixture.CreateMany(2)]);
_mockApiHttpClient.GetAsync<ThemeResponseDto>(ApiRoutes.Themes.GET_CURRENT_THEME, Arg.Any<CancellationToken>())
.Returns(_themeResponseDtoFixture.Create());
// Act
IResult result = await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None);
// Assert
Assert.IsType<RazorViewResult>(result);
}
[Fact]
public async Task ExecuteAsync_WhenCalled_ShouldLoadThemesAndCurrentThemeFromService()
{
// Arrange
_mockApiHttpClient.GetAsync<ThemeResponseDto[]>(ApiRoutes.Themes.GET_THEMES, Arg.Any<CancellationToken>())
.Returns([.. _themeResponseDtoFixture.CreateMany(2)]);
_mockApiHttpClient.GetAsync<ThemeResponseDto>(ApiRoutes.Themes.GET_CURRENT_THEME, Arg.Any<CancellationToken>())
.Returns(_themeResponseDtoFixture.Create());
// Act
await _sut.ExecuteAsync(EmptyRequest.Instance, CancellationToken.None);
// Assert
await _mockApiHttpClient.Received(1).GetAsync<ThemeResponseDto[]>(ApiRoutes.Themes.GET_THEMES, Arg.Any<CancellationToken>());
await _mockApiHttpClient.Received(1).GetAsync<ThemeResponseDto>(ApiRoutes.Themes.GET_CURRENT_THEME, Arg.Any<CancellationToken>());
}
}