Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
SyntaxTree.FastSpring.Api
/
StoreCredential.cs
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
32 lines (28 loc) · 933 Bytes
master
Breadcrumbs
SyntaxTree.FastSpring.Api
/
StoreCredential.cs
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
32 lines (28 loc) · 933 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
namespace SyntaxTree.FastSpring.Api
{
public sealed class StoreCredential
{
public string Company { get; private set; }
public string Username { get; private set; }
public string Password { get; private set; }
public StoreCredential(string company, string username, string password)
{
if (company == null)
throw new ArgumentNullException("company");
if (username == null)
throw new ArgumentNullException("username");
if (password == null)
throw new ArgumentNullException("password");
if (company.Length == 0)
throw new ArgumentException("Company name is empty.", "company");
if (username.Length == 0)
throw new ArgumentException("Username is empty.", "username");
if (password.Length == 0)
throw new ArgumentException("Password is empty", "password");
Company = company;
Username = username;
Password = password;
}
}
}
You can’t perform that action at this time.