Example #1
0
        public void GetAllServicesFromRepositoryTest()
        {
            //Arrange
            var mockUnitOfWork = new Mock <IUnitOfWork>();

            mockUnitOfWork.Setup(x => x.ServiceRepository.Get(null, null, ""));

            ServiceValidator ServiceValidator = new ServiceValidator(mockUnitOfWork.Object);

            ////Act
            IEnumerable <Service> returnedService = ServiceValidator.GetServices();

            ////Assert
            mockUnitOfWork.VerifyAll();
        }