Esempio n. 1
0
 public UsersService(IUsersRepository usersRepository, IHashService hashService, IRolesService rolesService, IConstantsProvider constantsProvider)
 {
     UsersRepository = usersRepository;
     HashService = hashService;
     RolesService = rolesService;
     ConstantsProvider = constantsProvider;
 }
        public HashMemberNameGenerator(IHashService hashService)
        {
            _hashService = hashService;

            const int delimLength = 1;
            MemberPathSubstringLength = MaxMemberNameLength - (_hashService.GetHashLength() + delimLength);
        }
        public void SetUp()
        {
            this.path = Path.GetTempFileName();
            this.md5Path = Path.GetTempFileName();

            this.testee = new HashService(new MD5Algorithm());
        }
 static SisoEnvironment()
 {
     Formatting = new SisoDbFormatting();
     StringConverter = new StringConverter(Formatting);
     StringComparer = StringComparer.InvariantCultureIgnoreCase;
     HashService = new Crc32HashService();
 }
 private PasswordController CreateController(IWordService wordService = null, IHashService hashService = null)
 {
     return new PasswordController(
         wordService ?? Substitute.For<IWordService>(),
         hashService ?? Substitute.For<IHashService>()
         );
 }
Esempio n. 6
0
 public AppLinksService(IPlatformProxy platformProxy, IApplicationSettings applicationSettings, IHashService hashService, IEntitiesRepository entitiesRepository, ILog log)
 {
     _platformProxy = platformProxy;
     _applicationSettings = applicationSettings;
     _hashService = hashService;
     _entitiesRepository = entitiesRepository;
     _log = log;
     _servicePath = _applicationSettings.AppLinkPath;
 }
Esempio n. 7
0
        public SecurityService(
            IUserDataService userDataService,
            ISessionDataService sessionDataService,
            IHashService hashService,
            IUserRegistrationValidator userRegistrationValidator)
        {
            _userDataService = userDataService;
            _sessionDataService = sessionDataService;

            _hashService = hashService;
            _userRegistrationValidator = userRegistrationValidator;
        }
Esempio n. 8
0
 public Login(
     IServerConnection serverConnection,
     ICurrentContext currentContext,
     IHashService hashService,
     LoginInformations loginInformations,
     IEventAggregator eventAggregator)
 {
     _serverConnection = serverConnection;
     _currentContext = currentContext;
     _hashService = hashService;
     _loginInformations = loginInformations;
     _eventAggregator = eventAggregator;
 }
Esempio n. 9
0
        public void SetUp()
        {
            this.mockery = new Mockery();

            this.algorithm = this.mockery.NewMock<IHashAlgorithm>();

            this.reader = this.mockery.NewMock<ITextReader>();

            this.writer = this.mockery.NewMock<ITextWriter>();

            this.hashReader = this.mockery.NewMock<ITextReader>();

            this.testee = new HashService(this.algorithm);
        }
 public DefaultDbQueryChecksumGenerator(IHashService hashService = null)
 {
     HashService = hashService ?? new Crc32HashService();
 }
Esempio n. 11
0
 public UserManagement(ISettingsManager settingsManager, IHashService hashService)
 {
     _settingsManager = settingsManager;
     _hashService = hashService;
 }
Esempio n. 12
0
 public MarvelDataService(IHashService hashService)
 {
     _hashService = hashService;
 }
Esempio n. 13
0
 public V8Commit20([Import("HashService")] IHashService hashService,
                   [Import("CovertionService")] IConversionService<UInt64, DateTime> covertionService)
 {
     this._convertionService = covertionService;
     this._hashService = hashService;
 }
Esempio n. 14
0
 public UsersController(IHashService hashService)
 {
     this.hashService = hashService;
 }
Esempio n. 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationService"/> class.
 /// </summary>
 /// <param name="documentSession">The documentSession.</param>
 /// <param name="hashService">The hash service.</param>
 /// <param name="saltService">The salt service.</param>
 public AuthenticationService(IDocumentSession documentSession, IHashService hashService, ISaltService saltService)
 {
     _documentSession = documentSession;
     _hashService = hashService;
     _saltService = saltService;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileHasher"/> class.
 /// </summary>
 public FileHasher()
 {
     this.hashService = new HashService(new SHA1Algorithm());
 }
Esempio n. 17
0
 public FileEntry(IHashService hashService)
 {
     _hashService = hashService;
 }
Esempio n. 18
0
 public HomeController(IHashService hashService)
 {
     _hashService = hashService;
 }
Esempio n. 19
0
 public V8CommitController(IHashService hashService, IConversionService<UInt64, DateTime> covertionService)
 {
     this._convertionService = covertionService;
     this._hashService = hashService;
 }
 public TokenValidationService(IJsonWebTokenService jwtService, IHashService hashService, IUserService userService)
 {
     _jwtService  = jwtService;
     _hashService = hashService;
     _userService = userService;
 }
 public UserService(IRunesDbContext context, IHashService hashService)
 {
     this.context     = context;
     this.hashService = hashService;
 }
 public SlackSignatureValidationService(IHashService hashService)
 {
     HashService = hashService;
 }
Esempio n. 23
0
 public StorageBroker(DbContextOptions <StorageBroker> options, IHashService hashService) : base(options)
 {
     _hashService = hashService;
 }
 public AuthenticationService(IUsersRepository users, IFormsAuthentication forms, IHashService hash)
 {
     _users = users;
     _forms = forms;
     _hash = hash;
 }
Esempio n. 25
0
 public Authentication(ISettingsManager settingsManager, IHashService hashService)
 {
     _settingsManager = settingsManager;
     _hashService = hashService;
 }
Esempio n. 26
0
 public Auth(IUserRepository userRepository, IHashService hashService, ILogger <Auth> logger)
 {
     _userRepository = userRepository;
     _hashService    = hashService;
     _logger         = logger;
 }
Esempio n. 27
0
 public ObservatorQueryHandler(VotingContext context, IHashService hash)
 {
     _context = context;
     _hash    = hash;
 }
 public AccountService(CaseFileContext context, IEmailService emailService, IHashService hashService)
 {
     _context      = context;
     _emailService = emailService;
     _hashService  = hashService;
 }
 public PasswordController(IWordService wordService, IHashService hashService)
 {
     _wordService = wordService;
     _hashService = hashService;
 }
 public ResetPasswordHandler(CaseFileContext CaseFileContext, ILogger <ResetPasswordHandler> logger, IHashService hash)
 {
     _CaseFileContext = CaseFileContext;
     _logger          = logger;
     _hash            = hash;
 }
Esempio n. 31
0
 public void SetHashService(IHashService hashService) => _hashService = hashService;
 public InteractionsController(IInteractionsRepo interactions, IUsersRepo users, IHashService hashService)
 {
     _interactions = interactions;
     _users        = users;
     _hashService  = hashService;
 }
 /// <summary>
 /// Constructor for dependency injection
 /// </summary>
 /// <param name="context">The EntityFramework context</param>
 /// <param name="hash">Implementation of the IHashService to be used to generate the hashes. It can either be `HashService` or `ClearTextService`.</param>
 /// <param name="mobileSecurityOptions">Options for specifying the DeviceLock feature toggle. If MobileSecurity:LockDevice is enabled (set to `true` in settings), the first login of the observer will store the UniqueDeviceId and only that device will be allowed to login.</param>
 public ObserverAuthenticationQueryHandler(VotingContext context, IHashService hash, IOptions <MobileSecurityOptions> mobileSecurityOptions)
 {
     _context = context;
     _hash    = hash;
     _mobileSecurityOptions = mobileSecurityOptions.Value;
 }
 public CredentialService(ICustomFormsAuthentication customFormsAuthentication, IHashService hashService, ICredentialRepository credentialRepository)
 {
     this.CustomFormsAuthentication = customFormsAuthentication;
     this.CredentialRepository      = credentialRepository;
     this.HashService = hashService;
 }
Esempio n. 35
0
 public IndexReader(ITetriSettings settings, IThread thread, ITagsService tagService, ILogger <IIndexReader> logger, IFileSystem fileSystem, IHashService hashService)
 {
     _settings    = settings;
     _tagService  = tagService;
     _logger      = logger;
     _fileSystem  = fileSystem;
     _hashService = hashService;
     _thread      = thread;
 }
 public AlbumController(IHashService hashService)
 {
     this.hashService = hashService;
 }
Esempio n. 37
0
 public Users_Connexion_POSTHandler(IRepository repository, IHashService hashService)
 {
     this.repository  = repository;
     this.hashService = hashService;
 }
Esempio n. 38
0
 public UsersController()
 {
     this.hashService = new HashService();
     this.userService = new UserService();
 }
Esempio n. 39
0
 public DatabaseCredentialVerifier(CitationContext dbContext, IHashService secureHashService)
 {
     _accountContext = dbContext;
     _hashService    = secureHashService;
 }
Esempio n. 40
0
 public V8Commit20([Import("HashService")] IHashService hashService,
                   [Import("CovertionService")] IConversionService <UInt64, DateTime> covertionService)
 {
     this._convertionService = covertionService;
     this._hashService       = hashService;
 }
Esempio n. 41
0
 public NHibernateUserRepository(ISession session, IHashService hashService)
     : base(session)
 {
     this.hashService = hashService;
 }
Esempio n. 42
0
 public CreateAccountCommandHandler(IMediator mediator, AuthDataContext repo, IHashService hash)
 {
     _repo     = repo ?? throw new ArgumentNullException(nameof(repo));
     _hash     = hash ?? throw new ArgumentNullException(nameof(hash));
     _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
 }
Esempio n. 43
0
 public ShareService(IPathHelper pathHelper, IHashService hashService)
 {
     _pathHelper = pathHelper;
     _hashService = hashService;
 }
Esempio n. 44
0
 public AccountController(IHashService hashService)
 {
     this.hashService = hashService;
 }
Esempio n. 45
0
 public ApiService(IUsersRepository users, IHashService hash)
 {
     _users = users;
     _hash = hash;
 }
 public UsersController(MusacaDb musacaDb, IHashService service) : base(musacaDb)
 {
     this.hashService = service;
 }
Esempio n. 47
0
 public UserController()
 {
     this.hashService = new HashService();
 }
Esempio n. 48
0
 public GameService(IHashService hashService, IMessageBus messageBus, IChannelPersistence channelPersistence)
 {
     _hashService        = hashService;
     _messageBus         = messageBus;
     _channelPersistence = channelPersistence;
 }
 public DefaultUniquesChecksumGenerator(IHashService hashService = null)
 {
     HashService = hashService ?? new Crc32HashService();
 }
Esempio n. 50
0
 public Form8_2(IOrderService orderService, IHashService hashService)
 {
     InitializeComponent();
     this.orderService = orderService;
     this.hashService  = hashService;
 }
 public CredentialService(ICustomFormsAuthentication customFormsAuthentication, IHashService hashService, ICredentialRepository credentialRepository)
 {
     this.CustomFormsAuthentication = customFormsAuthentication;
     this.CredentialRepository = credentialRepository;
     this.HashService = hashService;
 }
Esempio n. 52
0
 public AccountController()
 {
     this.hashService = new HashService();
 }
 protected override void OnFixtureInitialize()
 {
     _hasher = new Crc32HashService();
 }
Esempio n. 54
0
 public AuthenticationService(IUsersRepository usersRepository, IHashService hashService)
 {
     UsersRepository = usersRepository;
     HashService = hashService;
 }