コード例 #1
0
        public void GetAll_RepositoryConsistsOf2Records_ShouldReturnListOf2Records()
        {
            // Arrange
            const int expected = 2;

            // Act
            var list = _exhibitsController.GetAll(HallId, StandId) as OkObjectResult;

            // Assert
            Assert.Equal(expected, (list.Value as List <ExhibitDTO>).Count);
        }
コード例 #2
0
        public void GetAll_RepositoryIsEmpty_ShouldReturnNotFound()
        {
            // Act
            var list = _exhibitsController2.GetAll(HallId, StandId) as OkObjectResult;

            // Assert
            Assert.Empty(list.Value as List <ExhibitDTO>);
        }