Ejemplo n.º 1
0
        public void FindByName_TermNameContainsSpring_ReturnsListOfTerms()
        {
            // arrange
            var expected = new List <Term>
            {
                FakeTermRepository.spring2016,
                FakeTermRepository.spring2017
            };

            var termName = "Spring";

            // act
            var result = _termService.FindByName(termName);

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