< Summary

Class:ApplicationCore.PostCommentResult
Assembly:ApplicationCore
File(s):C:\Users\Teknikaali\Source\Repos\jekyll-blog-comments\ApplicationCore\Services\PostComment\PostCommentResult.cs
Covered lines:20
Uncovered lines:0
Coverable lines:20
Total lines:37
Line coverage:100% (20 of 20)
Covered branches:0
Total branches:0

Coverage History

Metrics

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

File(s)

C:\Users\Teknikaali\Source\Repos\jekyll-blog-comments\ApplicationCore\Services\PostComment\PostCommentResult.cs

#LineLine coverage
 1using System;
 2using System.Net;
 3
 4namespace ApplicationCore
 5{
 6    public class PostCommentResult
 7    {
 138        public HttpStatusCode HttpStatusCode { get; }
 29        public Uri? RedirectUrl { get; }
 1310        public string Error { get; }
 411        public Exception? Exception { get; }
 12
 1313        public PostCommentResult(HttpStatusCode httpStatusCode, string error)
 1314        {
 1315            HttpStatusCode = httpStatusCode;
 1316            Error = error;
 1317        }
 18
 19        public PostCommentResult(HttpStatusCode httpStatusCode)
 420            : this(httpStatusCode, string.Empty)
 421        {
 22
 423        }
 24
 25        public PostCommentResult(HttpStatusCode httpStatusCode, string error, Exception exception)
 426            : this(httpStatusCode, error)
 427        {
 428            Exception = exception;
 429        }
 30
 31        public PostCommentResult(HttpStatusCode httpStatusCode, Uri redirectUri)
 232            : this(httpStatusCode)
 233        {
 234            RedirectUrl = redirectUri;
 235        }
 36    }
 37}