当前位置: 首页>>代码示例>>C#>>正文


C# StatementType.getSpecificFields方法代码示例

本文整理汇总了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);
        }
开发者ID:ELEN7045-Group1,项目名称:group-project,代码行数:31,代码来源:StatementTest.cs

示例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);
        }
开发者ID:ELEN7045-Group1,项目名称:group-project,代码行数:14,代码来源:StatementTypeTest.cs


注:本文中的StatementType.getSpecificFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。