using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Describes a new user to create via the method. /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewUser { public NewUser() { } /// /// Initializes a new instance of the class. /// /// The login for the user. /// The email address of the user public NewUser(string login, string email) { Ensure.ArgumentNotNullOrEmptyString(login, "login"); Ensure.ArgumentNotNullOrEmptyString(email, "email"); Login = login; Email = email; } /// /// Login of the user /// public string Login { get; protected set; } /// /// Email address of the user /// public string Email { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Login: {0} Email: {1}", Login, Email); } } } }