< Summary

Information
Class: UIBlazor.App
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/App.razor
Tag: 71_26091983037
Line coverage
0%
Covered lines: 0
Uncovered lines: 13
Coverable lines: 13
Total lines: 50
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildRenderTree(...)0%620%
get_McpSettingsProvider()100%210%
get_ProfileService()100%210%
get_CommonSettingsProvider()100%210%
get_ChatService()100%210%
OnInitializedAsync()100%210%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/App.razor

#LineLine coverage
 1@using UIBlazor.Components
 2
 03@if (!isInitialized)
 4{
 5    <div class="loading-container settings">
 6        <div class="loading-ball"></div>
 7        <div class="loading-ball"></div>
 8        <div class="loading-ball"></div>
 9    </div>
 10}
 11else
 12{
 13    <HeadContent>
 14        <RadzenTheme />
 15        <link rel="stylesheet" href="css/app.css" />
 16        <link rel="stylesheet" href="css/markdown.css" />
 17    </HeadContent>
 18
 19    <RadzenComponents />
 20
 21    <RadzenLayout>
 22        <RadzenBody>
 23            <AiChat class="rz-h-100" />
 24        </RadzenBody>
 25    </RadzenLayout>
 26}
 27
 28@code
 29{
 030    [Inject] private IMcpSettingsProvider McpSettingsProvider { get; set; } = null!;
 031    [Inject] private IProfileManager ProfileService { get; set; } = null!;
 032    [Inject] private ICommonSettingsProvider CommonSettingsProvider { get; set; } = null!;
 033    [Inject] private IChatService ChatService { get; set; } = null!;
 34
 35    private bool isInitialized;
 36
 37    protected override async Task OnInitializedAsync()
 38    {
 39        // инициализация всех настроек
 040        await ProfileService.InitializeAsync();
 041        await CommonSettingsProvider.InitializeAsync();
 042        await McpSettingsProvider.InitializeAsync();
 43
 044        ChatService.Initialize();
 45
 046        await base.OnInitializedAsync();
 047        isInitialized = true;
 048        StateHasChanged();
 049    }
 50}