Beispiel #1
0
 protected QuestionValidator(
     IMapper mapper,
     IContext context,
     IHashComputer hashComputer,
     IRepository <DatabaseQuestion> repositoryQuestion)
 {
     Mapper             = mapper;
     Context            = context;
     HashComputer       = hashComputer;
     RepositoryQuestion = repositoryQuestion;
 }
 public UserRepository(
     Lazy <IDbContext> dbContextLazy,
     IGuidFactory guidFactory,
     IMapper mapper,
     IHashComputer hashComputer,
     IClaimContext <UserClaim> claimContext) : base(dbContextLazy)
 {
     this.guidFactory  = guidFactory;
     this.mapper       = mapper;
     this.hashComputer = hashComputer;
     this.claimContext = claimContext;
 }
 public QuestionValidatorClosedManyAnswers(
     IMapper mapper,
     IContext context,
     IHashComputer hashComputer,
     IRepository <DatabaseQuestion> repositoryQuestion)
     : base(
         mapper,
         context,
         hashComputer,
         repositoryQuestion)
 {
 }
 public QuestionValidatorOpenedOneString(
     IMapper mapper,
     IContext context,
     IHashComputer hashComputer,
     IRepository <DatabaseQuestion> repositoryQuestion)
     : base(
         mapper,
         context,
         hashComputer,
         repositoryQuestion)
 {
 }
 protected QuestionValidatorClosedAnswer(
     IMapper mapper,
     IContext context,
     IHashComputer hashComputer,
     IRepository <DatabaseQuestion> repositoryQuestion)
     : base(
         mapper,
         context,
         hashComputer,
         repositoryQuestion)
 {
 }
Beispiel #6
0
 public QuestionValidatorWithProgram(
     IMapper mapper,
     IContext context,
     IHashComputer hashComputer,
     IRepository <DatabaseQuestion> repositoryQuestion,
     ICodeRunner codeRunner)
     : base(
         mapper,
         context,
         hashComputer,
         repositoryQuestion)
 {
     _codeRunner = codeRunner;
 }
Beispiel #7
0
 public ResolverQuestionHash(IContext context, IHashComputer hashComputer)
 {
     _context      = context;
     _hashComputer = hashComputer;
 }
Beispiel #8
0
 static SecuredValueHashComputer()
 {
     Secret       = "zomg!";
     HashComputer = new SHA1HashComputer();
 }
 public PasswordManager(IHashComputer hashComputer)
 {
     _hashComputer = hashComputer;
 }
 static SecuredValueHashComputer()
 {
     Secret       = Config.GetSecret();
     HashComputer = new SHA1HashComputer();
 }
Beispiel #11
0
 public FileHasher(IO.IFileReader reader, IHashComputer hashComputer)
 {
     this.reader       = reader ?? throw new ArgumentNullException(nameof(reader));
     this.hashComputer = hashComputer ?? throw new ArgumentNullException(nameof(hashComputer));
 }