コード例 #1
0
        public void BeAbleToGetAllActiveProvidersFromRepository()
        {
            var mockUnitOfWork = new Mock <IUnitOfWork>();

            mockUnitOfWork.Setup(un => un.ProviderRepository.Get(
                                     It.IsAny <System.Linq.Expressions.Expression <Func <Provider, bool> > >(), null, ""));
            ProviderService providerService = new ProviderService(mockUnitOfWork.Object);

            bool getActiveProviders = true;
            IEnumerable <Provider> returnedProviders = providerService.GetAllProvidersAcoordingToState(getActiveProviders);

            mockUnitOfWork.VerifyAll();
        }