Index() public method

public Index ( ) : System.Web.Mvc.ViewResult
return System.Web.Mvc.ViewResult
        public void ShouldNot_RiseException_WhenListOfEmployeeIsEmpty()
        {
            //arrange
            var repository = Substitute.For<IRepository>();
            repository.Query<Person>().Returns(new List<Person>().AsQueryable());

            var employeesController = new EmployeesController(repository);

            //act
            employeesController.Index();

            //assert
            Assert.Pass();
        }
        public void Should_ReturnListOf200Employees_WhenRequestedIndexWith200EmployeesExistsInRepository()
        {
            //arrange
            var data = Builder<Person>.CreateListOfSize(500)
                .All()
                .With(x => x.Role = PersonRole.Client)
                .Random(200)
                .With(x => x.Role = PersonRole.Employee)
                .Build()
                .AsQueryable();

            var repository = Substitute.For<IRepository>();
            repository.Query<Person>().Returns(data);

            var employeesController = new EmployeesController(repository);

            //act
            var model = (IEnumerable<Person>)employeesController.Index().Model;

            //assert
            model.Count().Should().Be(200);
        }