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

            _userHandler = new UserHandler(_userRepository, _accessVerifier);
        }
예제 #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;
 }
예제 #4
0
 public UserHandler(IUserRepository userRepository, IAccessVerifier accessVerifier)
 {
     _userRepository = userRepository;
     _accessVerifier = accessVerifier;
 }