< Summary

Information
Class: Renci.SshNet.Common.AuthenticationPromptEventArgs
Assembly: Renci.SshNet
File(s): \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationPromptEventArgs.cs
Line coverage
88%
Covered lines: 8
Uncovered lines: 1
Coverable lines: 9
Total lines: 40
Line coverage: 88.8%
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_Language()100%10%
get_Instruction()100%1100%
get_Prompts()100%1100%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace Renci.SshNet.Common
 4{
 5    /// <summary>
 6    /// Provides data for <see cref="KeyboardInteractiveConnectionInfo.AuthenticationPrompt"/> event.
 7    /// </summary>
 8    public class AuthenticationPromptEventArgs : AuthenticationEventArgs
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="AuthenticationPromptEventArgs"/> class.
 12        /// </summary>
 13        /// <param name="username">The username.</param>
 14        /// <param name="instruction">The instruction.</param>
 15        /// <param name="language">The language.</param>
 16        /// <param name="prompts">The information request prompts.</param>
 17        public AuthenticationPromptEventArgs(string username, string instruction, string language, IEnumerable<Authentic
 918            : base(username)
 919        {
 920            Instruction = instruction;
 921            Language = language;
 922            Prompts = prompts;
 923        }
 24
 25        /// <summary>
 26        /// Gets prompt language.
 27        /// </summary>
 028        public string Language { get; }
 29
 30        /// <summary>
 31        /// Gets prompt instruction.
 32        /// </summary>
 733        public string Instruction { get; }
 34
 35        /// <summary>
 36        /// Gets server information request prompts.
 37        /// </summary>
 1838        public IEnumerable<AuthenticationPrompt> Prompts { get; }
 39    }
 40}