< Summary

Information
Class: AspNetCoreGeneratedDocument.Areas_Studio2_Views_Products_Create
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/Views/Products/Create.cshtml
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 83
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

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ExecuteAsync()0%2040%
<ExecuteAsync()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/Views/Products/Create.cshtml

#LineLine coverage
 1@model OzonDomains.Models.Product
 2
 3@{
 04    ViewData["Title"] = "Создание товара";
 05    Layout = "~/Views/Shared/_Layout.cshtml";
 6}
 7
 08@await Html.PartialAsync("_BsxGridShell")
 9
 10<div class="container py-3 bsx-surface">
 11<h1>Create</h1>
 12
 13<h4>Product</h4>
 14<hr />
 15<div class="row">
 16    <div class="col-md-4">
 17        <form asp-area="Studio2" asp-controller="Products" asp-action="Create">
 18            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
 19            <div class="form-group">
 20                <label asp-for="Article" class="control-label"></label>
 21                <input asp-for="Article" class="form-control" />
 22                <span asp-validation-for="Article" class="text-danger"></span>
 23            </div>
 24            <div class="form-group">
 25                <label asp-for="OzonProductId" class="control-label"></label>
 26                <input asp-for="OzonProductId" class="form-control" />
 27                <span asp-validation-for="OzonProductId" class="text-danger"></span>
 28            </div>
 29            <div class="form-group">
 30                <label asp-for="FboOzonSkuId" class="control-label"></label>
 31                <input asp-for="FboOzonSkuId" class="form-control" />
 32                <span asp-validation-for="FboOzonSkuId" class="text-danger"></span>
 33            </div>
 34            <div class="form-group">
 35                <label asp-for="FbsOzonSkuId" class="control-label"></label>
 36                <input asp-for="FbsOzonSkuId" class="form-control" />
 37                <span asp-validation-for="FbsOzonSkuId" class="text-danger"></span>
 38            </div>
 39            <div class="form-group">
 40                <label asp-for="CommercialCategory" class="control-label"></label>
 41                <input asp-for="CommercialCategory" class="form-control" />
 42                <span asp-validation-for="CommercialCategory" class="text-danger"></span>
 43            </div>
 44            <div class="form-group">
 45                <label asp-for="Volume" class="control-label"></label>
 46                <input asp-for="Volume" class="form-control" />
 47                <span asp-validation-for="Volume" class="text-danger"></span>
 48            </div>
 49            <div class="form-group">
 50                <label asp-for="VolumetricWeight" class="control-label"></label>
 51                <input asp-for="VolumetricWeight" class="form-control" />
 52                <span asp-validation-for="VolumetricWeight" class="text-danger"></span>
 53            </div>
 54            <div class="form-group">
 55                <label asp-for="CurrentPriceWithDiscount" class="control-label"></label>
 56                <input asp-for="CurrentPriceWithDiscount" class="form-control" />
 57                <span asp-validation-for="CurrentPriceWithDiscount" class="text-danger"></span>
 58            </div>
 59            <div class="form-group">
 60                <input type="submit" value="Create" class="btn btn-primary" />
 61            </div>
 62        </form>
 63    </div>
 64</div>
 65
 66<div>
 67    <a asp-action="Index">Back to List</a>
 68</div>
 69</div>
 70
 71@section Scripts {
 072    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
 73    <script>
 74        $.validator.methods.range = function (value, element, param) {
 75            var globalizedValue = value.replace(",", ".");
 76            return this.optional(element) || (globalizedValue >= param[0] && globalizedValue <= param[1]);
 77        }
 78
 79        $.validator.methods.number = function (value, element) {
 80            return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:[\s\.,]\d{3})+)(?:[\.,]\d+)?$/.test(value);
 81        }
 82    </script>
 83}

Methods/Properties

ExecuteAsync()
<ExecuteAsync()