public void OpenIdLogin() { bool isCompleted = false; OpenIdLogin openidLogin = new OpenIdLogin(); openidLogin.Login((err, arg) => { Assert.IsNull(err); Assert.IsFalse(string.IsNullOrEmpty(arg.Idendifier), "Authentication failed"); Assert.IsNotNull(openidLogin.OpenIdUser); Assert.IsFalse(string.IsNullOrEmpty(openidLogin.OpenIdUser.Identifier)); isCompleted = true; }); EnqueueConditional(() => isCompleted); EnqueueTestComplete(); }
public Client(OpenIdLogin request) { this.ApplicationId = request.ApplicationId; this.Authentication = request; }