public void GetActiveDataTest() { _repository .Setup(it => it.GetActiveData()) .Returns(_repositoryList); var result = _target.GetActiveData().ToList(); Assert.AreEqual(_repositoryList.ToList().Count, result.Count); }