Exemple #1
0
 public ScheduleService(
     ICurrentSessionUser currentSessionUser,
     ICacheProvider cacheProvider,
     IScheduleRepository scheduleRepository,
     IUnitOfWorkFactory <UnitOfWork> uow) : base(currentSessionUser, cacheProvider, scheduleRepository, uow)
 {
 }
Exemple #2
0
 public UserService(
     ICurrentSessionUser currentSessionUser,
     ICacheProvider cacheProvider,
     IUserRepository repository,
     IUnitOfWorkFactory <UnitOfWork> uow) : base(currentSessionUser, cacheProvider, repository, uow)
 {
 }
Exemple #3
0
 public GenericCachedEntityService(
     ICurrentSessionUser currentSessionUser,
     ICacheProvider cacheProvider,
     IGenericRepository <TEntity> TEntityRepository,
     IUnitOfWorkFactory <UnitOfWork> uow) : base(TEntityRepository, uow)
 {
     _currentSessionUser = currentSessionUser;
     _cacheProvider      = cacheProvider;
 }
        public void SetUp()
        {
            _currentSessionUser    = A.Fake <ICurrentSessionUser>();
            _currentSessionUser.Id = Guid.NewGuid().ToString("N");

            _cacheProvider = A.Fake <ICacheProvider>();
            _repository    = A.Fake <IScheduleRepository>();
            _uow           = A.Fake <IUnitOfWorkFactory <UnitOfWork> >();

            _service = new ScheduleService(_currentSessionUser, _cacheProvider, _repository, _uow);
        }