Ejemplo n.º 1
0
 public ShortenerService(IFolderRepository folders, IFileRepository files, IMapper mapper, IAccessVerifier verifier)
 {
     _folders  = folders;
     _files    = files;
     Mapper    = mapper;
     _verifier = verifier;
 }
Ejemplo n.º 2
0
        public UserHandlerTests()
        {
            _userRepository = Substitute.For <IUserRepository>();
            _accessVerifier = Substitute.For <IAccessVerifier>();

            _userHandler = new UserHandler(_userRepository, _accessVerifier);
        }
Ejemplo n.º 3
0
 public ProfileService(IHash hash, IFolderRepository folders, IFileRepository fileRepo, IUserRepository users, IMapper mapper, IStorage storage, IAccessVerifier verifier)//, string rootAlias)
 {
     _hash          = hash;
     _folders       = folders;
     Mapper         = mapper;
     _storage       = storage;
     _users         = users;
     _files         = fileRepo;
     rootStringName = "root folder";
     _verifier      = verifier;
 }
Ejemplo n.º 4
0
 public UserHandler(IUserRepository userRepository, IAccessVerifier accessVerifier)
 {
     _userRepository = userRepository;
     _accessVerifier = accessVerifier;
 }