示例#1
0
        public void GetAll_WhenCalled_ReturnAllTheTerms()
        {
            // arrange
            var expected = new List <Term>
            {
                FakeTermRepository.terms[0],
                FakeTermRepository.terms[1],
                FakeTermRepository.terms[2],
                FakeTermRepository.terms[3]
            };

            // act
            var result = _termService.GetAll();

            // assert
            Assert.AreEqual(expected, result);
        }