< Summary

Information
Class: OzonOrdersWeb.Areas.Identity.Pages.Account.Manage.ManageNavPages
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Identity/Pages/Account/Manage/ManageNavPages.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 19
Coverable lines: 19
Total lines: 123
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 4
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Identity/Pages/Account/Manage/ManageNavPages.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3#nullable disable
 4
 5using System;
 6using Microsoft.AspNetCore.Mvc.Rendering;
 7
 8namespace  OzonOrdersWeb.Areas.Identity.Pages.Account.Manage
 9{
 10    /// <summary>
 11    ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 12    ///     directly from your code. This API may change or be removed in future releases.
 13    /// </summary>
 14    public static class ManageNavPages
 15    {
 16        /// <summary>
 17        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 18        ///     directly from your code. This API may change or be removed in future releases.
 19        /// </summary>
 020        public static string Index => "Index";
 21
 22        /// <summary>
 23        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 24        ///     directly from your code. This API may change or be removed in future releases.
 25        /// </summary>
 026        public static string Email => "Email";
 27
 28        /// <summary>
 29        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 30        ///     directly from your code. This API may change or be removed in future releases.
 31        /// </summary>
 032        public static string ChangePassword => "ChangePassword";
 33
 34        /// <summary>
 35        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 36        ///     directly from your code. This API may change or be removed in future releases.
 37        /// </summary>
 038        public static string DownloadPersonalData => "DownloadPersonalData";
 39
 40        /// <summary>
 41        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 42        ///     directly from your code. This API may change or be removed in future releases.
 43        /// </summary>
 044        public static string DeletePersonalData => "DeletePersonalData";
 45
 46        /// <summary>
 47        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 48        ///     directly from your code. This API may change or be removed in future releases.
 49        /// </summary>
 050        public static string ExternalLogins => "ExternalLogins";
 51
 52        /// <summary>
 53        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 54        ///     directly from your code. This API may change or be removed in future releases.
 55        /// </summary>
 056        public static string PersonalData => "PersonalData";
 57
 58        /// <summary>
 59        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 60        ///     directly from your code. This API may change or be removed in future releases.
 61        /// </summary>
 062        public static string TwoFactorAuthentication => "TwoFactorAuthentication";
 63
 64        /// <summary>
 65        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 66        ///     directly from your code. This API may change or be removed in future releases.
 67        /// </summary>
 068        public static string IndexNavClass(ViewContext viewContext) => PageNavClass(viewContext, Index);
 69
 70        /// <summary>
 71        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 72        ///     directly from your code. This API may change or be removed in future releases.
 73        /// </summary>
 074        public static string EmailNavClass(ViewContext viewContext) => PageNavClass(viewContext, Email);
 75
 76        /// <summary>
 77        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 78        ///     directly from your code. This API may change or be removed in future releases.
 79        /// </summary>
 080        public static string ChangePasswordNavClass(ViewContext viewContext) => PageNavClass(viewContext, ChangePassword
 81
 82        /// <summary>
 83        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 84        ///     directly from your code. This API may change or be removed in future releases.
 85        /// </summary>
 086        public static string DownloadPersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, Download
 87
 88        /// <summary>
 89        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 90        ///     directly from your code. This API may change or be removed in future releases.
 91        /// </summary>
 092        public static string DeletePersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, DeletePers
 93
 94        /// <summary>
 95        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 96        ///     directly from your code. This API may change or be removed in future releases.
 97        /// </summary>
 098        public static string ExternalLoginsNavClass(ViewContext viewContext) => PageNavClass(viewContext, ExternalLogins
 99
 100        /// <summary>
 101        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 102        ///     directly from your code. This API may change or be removed in future releases.
 103        /// </summary>
 0104        public static string PersonalDataNavClass(ViewContext viewContext) => PageNavClass(viewContext, PersonalData);
 105
 106        /// <summary>
 107        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 108        ///     directly from your code. This API may change or be removed in future releases.
 109        /// </summary>
 0110        public static string TwoFactorAuthenticationNavClass(ViewContext viewContext) => PageNavClass(viewContext, TwoFa
 111
 112        /// <summary>
 113        ///     This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
 114        ///     directly from your code. This API may change or be removed in future releases.
 115        /// </summary>
 116        public static string PageNavClass(ViewContext viewContext, string page)
 117        {
 0118            var activePage = viewContext.ViewData["ActivePage"] as string
 0119                ?? System.IO.Path.GetFileNameWithoutExtension(viewContext.ActionDescriptor.DisplayName);
 0120            return string.Equals(activePage, page, StringComparison.OrdinalIgnoreCase) ? "active" : null;
 121        }
 122    }
 123}