protected AuthenticationMethod(string username) { if (username.IsNullOrWhiteSpace()) throw new ArgumentException("username"); Username = username; }