public ScheduleService( ICurrentSessionUser currentSessionUser, ICacheProvider cacheProvider, IScheduleRepository scheduleRepository, IUnitOfWorkFactory <UnitOfWork> uow) : base(currentSessionUser, cacheProvider, scheduleRepository, uow) { }
public UserService( ICurrentSessionUser currentSessionUser, ICacheProvider cacheProvider, IUserRepository repository, IUnitOfWorkFactory <UnitOfWork> uow) : base(currentSessionUser, cacheProvider, repository, uow) { }
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); }