Beispiel #1
0
        public TwoFactorService()
        {
            _context  = new TwoFactorContext();
            _reader   = new OneTimeSecretReader(_context);
            _options  = new TimeBasedOneTimeOptions();
            _interval = new ValidUntilCalculator();

            // Hard-coded 5 minutes
            _options.TimeInterval = 300;
        }
 public void Then_An_Exception_Is_Thrown_When_Context_Is_Null()
 {
     var actual = new OneTimeSecretReader(null);
 }