< Summary

Class:ApplicationCore.Model.CommentResult
Assembly:ApplicationCore
File(s):C:\Users\Teknikaali\Source\Repos\jekyll-blog-comments\ApplicationCore\Model\CommentResult.cs
Covered lines:12
Uncovered lines:0
Coverable lines:12
Total lines:23
Line coverage:100% (12 of 12)
Covered branches:0
Total branches:0

Coverage History

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.ctor(...)10100%100%
.ctor(...)10100%100%

File(s)

C:\Users\Teknikaali\Source\Repos\jekyll-blog-comments\ApplicationCore\Model\CommentResult.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using System.Linq;
 3
 4namespace ApplicationCore.Model
 5{
 6    public class CommentResult
 7    {
 48        public bool HasErrors => Errors.Any();
 79        public Comment Comment { get; }
 710        public IEnumerable<string> Errors { get; }
 11
 1312        public CommentResult(Comment comment)
 1313        {
 1314            Comment = comment;
 1315            Errors = Enumerable.Empty<string>();
 1316        }
 17
 218        public CommentResult(Comment comment, IEnumerable<string> errors) : this(comment)
 219        {
 220            Errors = errors;
 221        }
 22    }
 23}