< Summary

Information
Class: Renci.SshNet.Common.AuthenticationPrompt
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationPrompt.cs
Line coverage
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 47
Line coverage: 90%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
.ctor(...)100%1100%
get_Id()100%1100%
get_IsEchoed()100%10%
get_Request()100%1100%
get_Response()100%1100%

File(s)

\home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationPrompt.cs

#LineLine coverage
 1namespace Renci.SshNet.Common
 2{
 3    /// <summary>
 4    /// Provides prompt information when <see cref="KeyboardInteractiveConnectionInfo.AuthenticationPrompt"/> is raised.
 5    /// </summary>
 6    public class AuthenticationPrompt
 7    {
 8        /// <summary>
 9        /// Initializes a new instance of the <see cref="AuthenticationPrompt"/> class.
 10        /// </summary>
 11        /// <param name="id">The sequence id.</param>
 12        /// <param name="isEchoed">if set to <see langword="true"/> the user input should be echoed.</param>
 13        /// <param name="request">The request.</param>
 614        public AuthenticationPrompt(int id, bool isEchoed, string request)
 615        {
 616            Id = id;
 617            IsEchoed = isEchoed;
 618            Request = request;
 619        }
 20
 21        /// <summary>
 22        /// Gets the prompt sequence id.
 23        /// </summary>
 624        public int Id { get; }
 25
 26        /// <summary>
 27        /// Gets a value indicating whether the user input should be echoed as characters are typed.
 28        /// </summary>
 29        /// <value>
 30        ///   <see langword="true"/> if the user input should be echoed as characters are typed; otherwise, <see langwor
 31        /// </value>
 032        public bool IsEchoed { get; }
 33
 34        /// <summary>
 35        /// Gets server information request.
 36        /// </summary>
 537        public string Request { get; }
 38
 39        /// <summary>
 40        /// Gets or sets server information response.
 41        /// </summary>
 42        /// <value>
 43        /// The response.
 44        /// </value>
 1245        public string Response { get; set; }
 46    }
 47}