public void GetAll() { // Arrange _mock.Setup(s => s.GetAll()).Returns(_sets); // Act var result = _setService.GetAll(); // Assert Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(IEnumerable <SetDTO>)); Assert.AreEqual(_sets.Count, result.Count()); }