Esempio n. 1
0
            public void ThrowsArgumentNullIfUrlIsNull()
            {
                Action act = () => _client.Process(null);

                act.ShouldThrow <ArgumentNullException>()
                .And.ParamName.Should().Be("url");
            }
Esempio n. 2
0
        private void DoWork(object sender, DoWorkEventArgs e)
        {
            var sqrl = new SqrlClient(_identity);
            var uri  = e.Argument.ToString();

            sqrl.Process(uri);
        }
Esempio n. 3
0
        public void Integration()
        {
            Identity.StorageProvider = new InMemoryStorageProvider();
            SqrlConfig.NonceLength   = 16;

            var uri = new Uri(Url);

            Identity id     = Identity.CreateNew("Test1", SecurePassword, _entropy);
            var      client = new SqrlClient(id);

            client.Process(Url);

            var server = new SqrlAuthenticator();
        }