Summary

Class:SampleDotNetCore2RestStub.Controllers.SecurePersonController
Assembly:SampleDotNetCore2RestStub
File(s):C:\SampleDotNetCore2RestStub\src\SampleDotNetCore2RestStub\Controllers\SecurePersonController.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:25
Line coverage:0%

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.ctor(...)1000
GetPersons()1000

File(s)

C:\SampleDotNetCore2RestStub\src\SampleDotNetCore2RestStub\Controllers\SecurePersonController.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using Microsoft.AspNetCore.Mvc;
 3using SampleDotNetCore2RestStub.Attributes;
 4using SampleDotNetCore2RestStub.Models;
 5using SampleDotNetCore2RestStub.Repositories;
 6
 7namespace SampleDotNetCore2RestStub.Controllers
 8{
 9    [ServiceFilter(typeof(AuthenticationFilterAttribute))]
 10    public class SecurePersonController : Controller
 11    {
 12        private readonly IPersonRepository _personRepository;
 13
 014        public SecurePersonController(IPersonRepository personRepository)
 015        {
 016            _personRepository = personRepository;
 017        }
 18
 19        [HttpGet("secure/person/all")]
 20        public List<Person> GetPersons()
 021        {
 022            return _personRepository.GetAll();
 023        }
 24    }
 25}