# < Summary

Information

Class: | Renci.SshNet.Common.AuthenticationEventArgs
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Common\AuthenticationEventArgs.cs

Line coverage
80%

Covered lines: | 4
Uncovered lines: | 1
Coverable lines: | 5
Total lines: | 24
Line coverage: | 80%

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

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
.ctor(...) | 100% | 1 | 100%
get_Username() | 100% | 1 | 0%

# File(s)

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

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet.Common`
|  | `4` |  | `{`
|  | `5` |  | `/// <summary>`
|  | `6` |  | `/// Base class for authentication events.`
|  | `7` |  | `/// </summary>`
|  | `8` |  | `public abstract class AuthenticationEventArgs : EventArgs`
|  | `9` |  | `{`
|  | `10` |  | `/// <summary>`
|  | `11` |  | `/// Initializes a new instance of the <see cref="AuthenticationEventArgs"/> class.`
|  | `12` |  | `/// </summary>`
|  | `13` |  | `/// <param name="username">The username.</param>`
| 9 | `14` |  | `protected AuthenticationEventArgs(string username)`
| 9 | `15` |  | `{`
| 9 | `16` |  | `Username = username;`
| 9 | `17` |  | `}`
|  | `18` |  | ``
|  | `19` |  | `/// <summary>`
|  | `20` |  | `/// Gets the username.`
|  | `21` |  | `/// </summary>`
| 0 | `22` |  | `public string Username { get; }`
|  | `23` |  | `}`
|  | `24` |  | `}`

# Methods/Properties

.ctor(System.String)
get_Username()