本文整理汇总了C#中AccountType类的典型用法代码示例。如果您正苦于以下问题:C# AccountType类的具体用法?C# AccountType怎么用?C# AccountType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AccountType类属于命名空间,在下文中一共展示了AccountType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Account
public Account(int accountNumber, string name, AccountType accountAccountType)
{
AccountNumber = accountNumber;
Name = name;
Type = accountAccountType;
_transactions = new List<ITransaction>();
}
示例2: SignedInUser
public SignedInUser(AccountType accountType, int userId, string userName, bool isAuthenticated)
{
AccountType = accountType;
AccountId = userId;
UserName = userName;
IsAuthenticated = isAuthenticated;
}
示例3: TinyPicUploader
public TinyPicUploader(string id, string key, AccountType accountType = AccountType.Anonymous, string shuk = null)
{
TinyPicID = id;
TinyPicKey = key;
AccountType = accountType;
Shuk = shuk;
}
示例4: CreditAccount
public void CreditAccount(AccountType accountType, Money amount)
{
GuardPortfolioState();
var account = Get<Account>(new AccountId(accountType));
account.Credit(amount);
}
示例5: Account
public Account( int num, AccountType type )
{
Number = num;
Amount = 0;
Type = type;
History = new List<HistoryEntry>();
}
示例6: Account
public Account(string email, string name, AccountType role)
{
id = -1;
this.Email = email;
this.Name = name;
this.Role = role;
}
示例7: SteamAccount
public SteamAccount(string username, string password)
{
this.name = username;
this.username = username;
this.password = password;
this.type = AccountType.Main;
}
示例8: AdalAccountSession
internal AdalAccountSession(
IDictionary<string, string> authenticationResponseValues,
string clientId = null,
AccountType accountType = AccountType.None)
: base(authenticationResponseValues, clientId, accountType)
{
}
示例9: Account
public Account(AccountType type, Customer accountCustumer, decimal balance, decimal interestRate)
{
this.Type = type;
this.AccountCustomer = accountCustumer;
this.Balance = balance;
this.InterestRate = interestRate;
}
示例10: AccountAlreadyOpened
public AccountAlreadyOpened(AccountType type, Int64 number, Decimal balance, AccountStatus status)
{
AccountType = type;
AccountNumber = number;
Balance = balance;
Status = status;
}
示例11: Account
internal Account(AccountTypeEnum accountType, Money initialDeposit)
{
this.accountType = accountType;
ledger = new Ledger(accountType);
this.accountType.ValidateBalance(initialDeposit);
ledger.DepositMoney(initialDeposit);
}
示例12: CanFindAccount
public static bool CanFindAccount(this Cmdlet command, AccountIdentity account, AccountType accountType)
{
if (account == null)
{
return false;
}
var name = account.Name;
var error = $"Cannot find an account with identity '{name}'.";
if (accountType == AccountType.Role && !Role.Exists(name))
{
command.WriteError(new ErrorRecord(new ObjectNotFoundException(error), ErrorIds.AccountNotFound.ToString(),
ErrorCategory.ObjectNotFound, account));
return false;
}
if (accountType == AccountType.User && !User.Exists(name))
{
command.WriteError(new ErrorRecord(new ObjectNotFoundException(error), ErrorIds.AccountNotFound.ToString(),
ErrorCategory.ObjectNotFound, account));
return false;
}
return true;
}
示例13: CreateAccount
/// <summary>
/// Factory method to assemble and return an account based on passed account type.
/// </summary>
/// <param name="accountType">Type of the account.</param>
/// <returns>
/// new account
/// </returns>
/// <exception cref="System.ArgumentException"></exception>
public Account CreateAccount(AccountType accountType)
{
Func<IDateProvider, Account> f;
if (!accMap.TryGetValue(accountType, out f))
throw new ArgumentException(string.Format("Cannot instantiate account of type {0}", accountType));
return f(dateProvider);
}
示例14: SetAccountType
public void SetAccountType(AccountType type)
{
if ((Application.platform != RuntimePlatform.OSXEditor) && (Application.platform != RuntimePlatform.WindowsEditor))
{
_tdgaSetAccountType((int) type);
}
}
示例15: Account
/// <summary>
/// Initializes a new instance of the <see cref="Account"/> class.
/// </summary>
/// <param name="accountType">Type of the account.</param>
/// <param name="interestCalculator">The interest calculator.</param>
/// <param name="dateProvider">The date provider.</param>
public Account(AccountType accountType,IInterestCalculator interestCalculator,IDateProvider dateProvider)
{
AccountType = accountType;
transactionsList = new List<Transaction>();
this.interestCalculator = interestCalculator;
this.dateProvider = dateProvider;
}