示例#1
0
            private static OobResult ApproveOutOfBand(string method)
            {
                Console.WriteLine($"> Please approve out-of-band via {method} and press ENTER");
                var answer = GetAnswer($"Or enter the {method} passcode from the app or 'c' to cancel");

                if (answer.ToLower() == "c")
                {
                    return(OobResult.Cancel);
                }

                var rememberMe = GetRememberMe();

                return(answer.Length == 0
                    ? OobResult.WaitForApproval(rememberMe)
                    : OobResult.ContinueWithPasscode(answer, rememberMe));
            }
 public FakeUi(OtpResult otp, OobResult oob)
 {
     _otp = otp;
     _oob = oob;
 }