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

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

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

            // act
            var model = (IEnumerable<Person>)new ClientsController(repository).Index().Model;

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