< Summary

Class:SVETA.Api.Data.DTO.GroupType
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/CatalogFiltersDTO.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:63
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
.cctor()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/CatalogFiltersDTO.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Threading.Tasks;
 5
 6namespace SVETA.Api.Data.DTO
 7{
 8    public class CatalogFiltersDTO
 9    {
 10        public string Key { get; set; }
 11        public string[] Wrappers { get; set; }
 12        public TemplateOptionDTO TemplateOptions { get; set; }
 13        public string FieldGroupClassName { get; set; }
 14        public List<FieldGroupDTO> FieldGroup { get; set; }
 15    }
 16    public class TemplateOptionDTO
 17    {
 18        public string Label { get; set; }
 19    }
 20    public class FieldGroupDTO
 21    {
 22        public string Type { get; set; }
 23        public string Key { get; set; }
 24        public FieldGroupTemplateOptions TemplateOptions { get; set; }
 25        public string ClassName { get; set; }
 26    }
 27    public class FieldGroupTemplateOptions
 28    {
 29        public string Label { get; set; }
 30        public string Placeholder { get; set; }
 31
 32        public FieldGroupTemplateOptions() { }
 33
 34        public FieldGroupTemplateOptions(string label, string placeholder)
 35        {
 36            Label = label;
 37            Placeholder = placeholder;
 38        }
 39    }
 40
 41    public class FieldPriceGroupTemplateOptions: FieldGroupTemplateOptions
 42    {
 43        public decimal PriceCount { get; set; }
 44
 45        public FieldPriceGroupTemplateOptions(){ }
 46
 47        public FieldPriceGroupTemplateOptions(string label, string placeholder, decimal priceCount) : base(label, placeh
 48        {
 49            PriceCount = priceCount;
 50        }
 51    }
 52    public static class FieldType
 53    {
 54        public static string checkbox = "checkbox";
 55        public static string input = "input";
 56        public static string radio = "radio";
 57    }
 58    public static class GroupType
 59    {
 060        public static string verticalGroup = "vertical-group";
 061        public static string horizontalGroup = "horizontal-group";
 62    }
 63}

Methods/Properties

.cctor()