BinaryStudio.ClientManager.WebUi.Tests.Controllers.ClientsControllerTests.Should_ReturnListOf300Persons_WhenListOfClientsRequested C# (CSharp) 메소드

Should_ReturnListOf300Persons_WhenListOfClientsRequested() 개인적인 메소드

        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);
        }