< Summary

Class:MUNity.Schema.ResponseError
Assembly:MUNity.Schema
File(s):C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\General\AbstractResponse.cs
Covered lines:0
Uncovered lines:3
Coverable lines:3
Total lines:30
Line coverage:0% (0 of 3)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_ErrorType()100%10%
get_ParameterName()100%10%
get_Description()100%10%

File(s)

C:\Users\aeuke\source\repos\PeerConradi\munity\src\MUNitySchema\General\AbstractResponse.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5namespace MUNity.Schema
 6{
 7    public abstract class AbstractResponse
 8    {
 9        public bool HasError { get; set; }
 10
 11        public List<ResponseError> Errors { get; set; } = new List<ResponseError>();
 12    }
 13
 14    public class ResponseError
 15    {
 016        public ErrorTypes ErrorType { get; set; }
 17
 018        public string ParameterName { get; set; }
 19
 020        public string Description { get; set; }
 21    }
 22
 23    public enum ErrorTypes
 24    {
 25        NoPermission,
 26        InvalidData,
 27        MissingData,
 28        Warning
 29    }
 30}