< Summary

Information
Class: ValidateLib.Metadata.PropertyParsers.InheritedProperties.AboutUrlPropertyParser
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\Metadata\PropertyParsers\InheritedProperties\AboutUrlPropertyParser.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBlocks covered Blocks not covered
AboutUrlPropertyParser(...)20
ParseProperty(...)80

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\Metadata\PropertyParsers\InheritedProperties\AboutUrlPropertyParser.cs

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2using ValidateLib.ErrorsAndWarnings.Warnings;
 3using ValidateLib.Metadata.Descriptors;
 4using ValidateLib.Metadata.Parsers;
 5
 6namespace ValidateLib.Metadata.PropertyParsers.InheritedProperties
 7{
 8    public class AboutUrlPropertyParser : PropertyParserBase<InheritedPropertiesDescriptor>, IPropertyParser<InheritedPr
 9    {
 110        public AboutUrlPropertyParser(List<Warning> warnings, InheritedPropertiesDescriptor descriptor) : base(warnings,
 11        {
 112        }
 13
 14        public void ParseProperty(JProperty property)
 15        {
 116            var uriTemplatePropertyParser = new UriTemplatePropertyParser(Warnings);
 117            var uriTemplateProperty = uriTemplatePropertyParser.ParseJToken(property.Value, "", property.Name);
 118            Descriptor.aboutURL = uriTemplateProperty;
 19
 120        }
 21    }
 22}