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

ShouldNot_RaiseAnException_WhenClientsListIsEmpty() 개인적인 메소드

private ShouldNot_RaiseAnException_WhenClientsListIsEmpty ( ) : void
리턴 void
        public void ShouldNot_RaiseAnException_WhenClientsListIsEmpty()
        {
            // arrange
            var repository = Substitute.For<IRepository>();
            repository.Query<Person>().Returns(new List<Person>().AsQueryable());
            var clientController = new ClientsController(repository);

            // act & assert
            Assert.DoesNotThrow(() => clientController.Index());
        }