< Summary

Information
Class: Syki.Front.Components.Agenda.WeeklyAgenda
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Components/Agenda/WeeklyAgenda.razor
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 38
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 6
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Days()100%210%
get_Class()100%210%
GetDays()100%210%

File(s)

/home/runner/work/syki/syki/Front/Components/Agenda/WeeklyAgenda.razor

#LineLine coverage
 1@namespace Syki.Front.Components.Agenda
 2
 3<MudContainer Class="@Class">
 4    <MudGrid Spacing="2" Justify="Justify.SpaceBetween">
 05        @foreach (AgendaDayOut day in GetDays())
 6        {
 7            <MudItem xs="12" sm="6" md="4" lg="2">
 8                <MudPaper Class="pb-3" Style="height: 100%">
 9                    <MudStack AlignItems="AlignItems.Center" Spacing="1">
 10                        <MudText Class="mt-1" Typo="Typo.h6">@day.Day.GetDescription()</MudText>
 11                        <MudDivider/>
 012                        @foreach (AgendaDisciplineOut item in day.Disciplines)
 13                        {
 14                            <MudPaper Class="border-solid mt-2" Style="width: 90%; border-width: 1px;">
 15                                <MudText Align="Align.Center" Class="pa-2 pt-2" Typo="Typo.body2">@item.Name</MudText>
 16                                <MudText Align="Align.Center" Class="px-2 pb-2" Typo="Typo.body2"><strong>@item.Start.Ge
 17                            </MudPaper>
 18                        }
 19                    </MudStack>
 20                </MudPaper>
 21            </MudItem>
 22        }
 23    </MudGrid>
 24</MudContainer>
 25
 26@code
 27{
 28    [CascadingParameter(Name = "Days")]
 029    public List<AgendaDayOut> Days { get; set; }
 30
 31    [Parameter]
 032    public string Class { get; set; }
 33
 34    private List<AgendaDayOut> GetDays()
 35    {
 036        return Days.OrderBy(d => d.Day).ToList();
 37    }
 38}

Methods/Properties

get_Days()
get_Class()
GetDays()