BinaryStudio.ClientManager.WebUi.Tests.Controllers.EmployeesControllerTests.ShouldNot_RiseException_WhenListOfEmployeeIsEmpty C# (CSharp) Метод

ShouldNot_RiseException_WhenListOfEmployeeIsEmpty() приватный Метод

private ShouldNot_RiseException_WhenListOfEmployeeIsEmpty ( ) : void
Результат void
        public void ShouldNot_RiseException_WhenListOfEmployeeIsEmpty()
        {
            //arrange
            var repository = Substitute.For<IRepository>();
            repository.Query<Person>().Returns(new List<Person>().AsQueryable());

            var employeesController = new EmployeesController(repository, appContext);

            //act
            employeesController.Index();

            //assert
            Assert.Pass();
        }