< Summary

Class:MUNity.BlazorServer.Components.Conference.ApplicationList
Assembly:MUNity.BlazorServer
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNity.BlazorServer\Components\Conference\ApplicationList.razor
Covered lines:0
Uncovered lines:16
Coverable lines:16
Total lines:85
Line coverage:0% (0 of 16)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
BuildRenderTree(...)0%80%
get_ConferenceId()100%10%
get_ApplicationSelected()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNity.BlazorServer\Components\Conference\ApplicationList.razor

#LineLine coverage
 1@using MUNity.Base
 2@using Microsoft.EntityFrameworkCore
 3
 4@inject MUNity.Database.Context.MunityContext context
 5
 6<div class="mailbox-content-header">
 7    <!-- BEGIN btn-toolbar -->
 8    <div class="btn-toolbar align-items-center">
 9        <button class="btn btn-sm btn-white me-2"><i class="fa fa-redo"></i></button>
 10        <div class="w-100 d-sm-none d-block mb-2 hide" data-email-action="divider"></div>
 11        <!-- BEGIN btn-group -->
 12        <div class="btn-group">
 13            <button class="btn btn-sm btn-white hide" data-email-action="delete"><i class="fa fa-times me-1"></i> <span 
 14            <button class="btn btn-sm btn-white hide" data-email-action="archive"><i class="fa fa-folder me-1"></i> <spa
 15            <button class="btn btn-sm btn-white hide" data-email-action="archive"><i class="fa fa-trash me-1"></i> <span
 16        </div>
 17        <!-- END btn-group -->
 18        <!-- BEGIN btn-group -->
 19        <div class="btn-group ms-auto">
 20            <button class="btn btn-white btn-sm">
 21                <i class="fa fa-chevron-left"></i>
 22            </button>
 23            <button class="btn btn-white btn-sm">
 24                <i class="fa fa-chevron-right"></i>
 25            </button>
 26        </div>
 27        <!-- END btn-group -->
 28    </div>
 29    <!-- END btn-toolbar -->
 30</div>
 31<div class="mailbox-content-body">
 32    <div class="ps ps--active-y" style="height: 100%;">
 33        <!-- BEGIN list-email -->
 34        <ul class="list-group list-group-lg no-radius list-email">
 035            @foreach (var application in context.DelegationApplications
 036              .Include(n => n.DelegationWishes)
 037              .ThenInclude(n => n.Delegation)
 038              .Include(n => n.FormulaInputs)
 039              .Include(n => n.Users)
 040              .ThenInclude(n => n.User)
 041              .Where(n => n.DelegationWishes.Any(a => a.Delegation.Conference.ConferenceId == ConferenceId)))
 042            {
 43                <li class="list-group-item @((application.Status == ApplicationStatuses.Pending) ? "unread" : null)">
 44                    @*<div class="email-checkbox">
 45                            <div class="form-check">
 46                                <input type="checkbox" class="form-check-input" data-checked="email-checkbox" id="emailC
 47                                <label class="form-check-label" for="emailCheckbox1"></label>
 48                            </div>
 49                        </div>*@
 50                    <a href="/c/manageapplications/@ConferenceId/application/@application.DelegationApplicationId" class
 51                        <span class="text-white">F</span>
 52                    </a>
 53                    <div class="email-info">
 54                        <a href="/c/manageapplications/@ConferenceId/application/@application.DelegationApplicationId">
 055                            <span class="email-sender">DelegationWishesbewerbung @application.Users.Count Benutzer </spa
 056                            <span class="email-title">@application.FormulaInputs?.FirstOrDefault()?.Value</span>
 057                            <span class="email-desc">@string.Join(", ", application.Users.Select(a => a.User.Forename + 
 058                            <span class="email-time">@application.ApplyDate.ToShortDateString()</span>
 59                        </a>
 60                    </div>
 61                </li>
 062            }
 63
 64        </ul>
 65        <!-- END list-email -->
 66        <div class="ps__rail-x" style="left: 0px; bottom: 0px;"><div class="ps__thumb-x" tabindex="0" style="left: 0px; 
 67    </div>
 68</div>
 69<div class="mailbox-content-footer d-flex align-items-center">
 070    <div class="text-inverse fw-bold">@context.DelegationApplications.Count(n => n.DelegationWishes.Any(a => a.Delegatio
 71    <div class="btn-group ms-auto">
 72        <button class="btn btn-white btn-sm">
 73            <i class="fa fa-fw fa-chevron-left"></i>
 74        </button>
 75        <button class="btn btn-white btn-sm">
 76            <i class="fa fa-fw fa-chevron-right"></i>
 77        </button>
 78    </div>
 79</div>
 80
 81@code {
 082    [Parameter] public string ConferenceId { get; set; }
 83
 084    [Parameter] public EventCallback<int> ApplicationSelected { get; set; }
 85}