Summary

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

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)
 15        {
 016            _personRepository = personRepository;
 17        }
 18
 19        [HttpGet("secure/person/all")]
 20        public List<Person> GetPersons()
 21        {
 022            return _personRepository.GetAll();
 23        }
 24    }
 25}

Methods/Properties

.ctor
GetPersons