diff --git a/Tests/RP.UnitTests/EmployeeBusinessTests.cs b/Tests/RP.UnitTests/EmployeeBusinessTests.cs index 8cd0a09..d228c77 100644 --- a/Tests/RP.UnitTests/EmployeeBusinessTests.cs +++ b/Tests/RP.UnitTests/EmployeeBusinessTests.cs @@ -6,6 +6,7 @@ using RP.Business.Profiles; using RP.DataAccess.RepositoryPattern.Core; using RP.DataAccess.RepositoryPattern.Entities; +using System.Collections.Generic; namespace RP.UnitTests { @@ -89,9 +90,15 @@ public void GetEmployeeById_EmployeeExists_ReturnsEmployeeWithFirstNameOfJohn() } [Test] - public void GetEmployees_WhenCalled_ShouldReturnListOfEmployees() + public void GetEmployees_WhenCalled_ShouldReturnIEnumerableOfEmployeeDto() { + _unitOfWork.Setup(uow => uow.Employees.GetAll()) + .Returns(new List { _employee }); + _business = new EmployeeBusiness(_unitOfWork.Object); + + var result = _business.GetEmployees(); + Assert.That(result, Is.InstanceOf(typeof(IEnumerable))); } } }