public void ThrowsArgumentNullIfUrlIsNull() { Action act = () => _client.Process(null); act.ShouldThrow <ArgumentNullException>() .And.ParamName.Should().Be("url"); }
private void DoWork(object sender, DoWorkEventArgs e) { var sqrl = new SqrlClient(_identity); var uri = e.Argument.ToString(); sqrl.Process(uri); }
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(); }