本文整理汇总了C#中StatementType.getSpecificFields方法的典型用法代码示例。如果您正苦于以下问题:C# StatementType.getSpecificFields方法的具体用法?C# StatementType.getSpecificFields怎么用?C# StatementType.getSpecificFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StatementType
的用法示例。
在下文中一共展示了StatementType.getSpecificFields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateStatement_ExpectValid
public void CreateStatement_ExpectValid()
{
//Arrange
string localStatementIdString = "STMT01";
StatementId localStatementId = new StatementId(localStatementIdString);
SpecificFieldsFactory localfactory = new SpecificFieldsFactory();
string[] listspecificfields = { "Credit Card", "12" };
StatementType localStatementType = new StatementType(localfactory, "CreditCardProvider", listspecificfields);
StatementSpecificFields localspecificfields = localStatementType.getSpecificFields();
int localstatementAccountnumber = 1234567;
string localstatementAccountholdername = "Bruce";
DateTime localstatementDate = DateTime.Now;
StatementCommonFields localStatementCommonFields = new StatementCommonFields(localstatementAccountnumber, localstatementAccountholdername, localstatementDate);
APSUser localAPSUser = new APSUser(new APSUserId("1"), "testusername", "testpassword");
BillingAccount localBillingAccount = new BillingAccount(new BillingAccountId("1"), new BillingCompanyId("1"), "testusername", "testpassword", localAPSUser);
//Act
Statement localStatement = new Statement(localStatementId, localStatementCommonFields, localStatementType, localspecificfields, localAPSUser, localBillingAccount);
//Assert
Assert.AreEqual(localStatement.StatementId, localStatementId);
Assert.AreEqual(localStatement.StatementCommonFields, localStatementCommonFields);
Assert.AreEqual(localStatement.StatementType, localStatementType);
Assert.AreEqual(localStatement.StatementSpecificFields, localspecificfields);
Assert.AreEqual(localStatement.APSUser, localAPSUser);
Assert.AreEqual(localStatement.BillingAccount, localBillingAccount);
}
示例2: CreateStatementSpecificFields_ExpectValid
public void CreateStatementSpecificFields_ExpectValid()
{
//Arrange
SpecificFieldsFactory localfactory = new SpecificFieldsFactory();
string[] listspecificfields = { "You will need to pay by the 25th on the month", "1000" };
StatementType localStatementType = new StatementType(localfactory, "Municipality", listspecificfields);
StatementSpecificFields localspecificfields = localStatementType.getSpecificFields();
//Assert
Assert.IsNotNull(localspecificfields);
}