當前位置: 首頁>>代碼示例>>C#>>正文


C# Models.BankAccountDetails類代碼示例

本文整理匯總了C#中ModulusChecking.Models.BankAccountDetails的典型用法代碼示例。如果您正苦於以下問題:C# BankAccountDetails類的具體用法?C# BankAccountDetails怎麽用?C# BankAccountDetails使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BankAccountDetails類屬於ModulusChecking.Models命名空間,在下文中一共展示了BankAccountDetails類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CanProcessVocaLinkDoubleAlternateWithExceptionOne

 public void CanProcessVocaLinkDoubleAlternateWithExceptionOne()
 {
     var accountDetails = new BankAccountDetails("118765", "64371389");
     accountDetails.WeightMappings = _fakedModulusWeightTable.Object.GetRuleMappings(accountDetails.SortCode);
     var result = _firstStepDblAlCalculator.Process(accountDetails);
     Assert.True(result);
 }
開發者ID:pauldambra,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateCalculatorTests.cs

示例2: CalculatesSumAsExpected

 public void CalculatesSumAsExpected()
 {
     var details = new BankAccountDetails("499273", "12345678");
     var mapping = new ModulusWeightMapping("012345 012346 dblal 2 1 2 1 2 1 2 1 2 1 2 1 2 1");
     var actual = _check.GetModulusSum(details, mapping);
     Assert.AreEqual(70,actual);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateModulusCheckTests.cs

示例3: ExceptionFiveValidationTestSumCheck

 public void ExceptionFiveValidationTestSumCheck()
 {
     var details = new BankAccountDetails("938611", "07806039");
     var mapping = new ModulusWeightMapping("012345 012346 dblal 2 1 2 1 2 1 2 1 2 1 2 1 2 0 5");
     var actual = _check.GetModulusSum(details, mapping);
     Assert.AreEqual(51, actual);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateModulusCheckTests.cs

示例4: CalculatesExceptionSixTestCaseCorrectly

 public void CalculatesExceptionSixTestCaseCorrectly()
 {
     var details = new BankAccountDetails("202959", "63748472");
     var mapping = new ModulusWeightMapping("012345 012346 dblal 2 1 2 1 2 1 2 1 2 1 2 1 2 1");
     var actual = _check.GetModulusSum(details, mapping);
     Assert.AreEqual(60,actual);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateModulusCheckTests.cs

示例5: ExceptionFiveSecondCheckDigitIncorrect

 public void ExceptionFiveSecondCheckDigitIncorrect()
 {
     var accountDetails = new BankAccountDetails("938063", "15764273");
     accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
     var result = _firstStepDblAlCalculator.Process(accountDetails);
     Assert.IsFalse(result);
 }
開發者ID:pauldambra,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateCalculatorTests.cs

示例6: CanProcessVocalinkStandardEleven

 public void CanProcessVocalinkStandardEleven()
 {
     var accountDetails = new BankAccountDetails("107999", "88837491");
     accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
     var result = new FirstStandardModulusElevenCalculator().Process(accountDetails);
     Assert.True(result);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:MockCalculatorTests.cs

示例7: ExceptionFiveWhereFirstCheckPasses

 public void ExceptionFiveWhereFirstCheckPasses()
 {
     var accountDetails = new BankAccountDetails("938611", "07806039");
     accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
     var result = _firstStepDblAlCalculator.Process(accountDetails);
     Assert.IsFalse(result);
 }
開發者ID:pauldambra,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateCalculatorTests.cs

示例8: ExceptionSixButNotAForeignAccount

 public void ExceptionSixButNotAForeignAccount()
 {
     var accountDetails = new BankAccountDetails("202959", "63748472");
     accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
     var result = _secondStepDblAlCalculator.Process(accountDetails);
     Assert.IsTrue(result);
 }
開發者ID:pauldambra,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateCalculatorTests.cs

示例9: ExceptionThreeWhereCisNeitherSixNorNine

 public void ExceptionThreeWhereCisNeitherSixNorNine()
 {
     var accountDetails = new BankAccountDetails("827101", "28748352");
     accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
     var result = _secondStepDblAlCalculator.Process(accountDetails);
     Assert.IsTrue(result);
 }
開發者ID:pauldambra,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateCalculatorTests.cs

示例10: CanProcessStandardElevenCheck

 public void CanProcessStandardElevenCheck()
 {
     var accountDetails = new BankAccountDetails("000000", "58177632");
     accountDetails.WeightMappings = _fakedModulusWeightTable.Object.GetRuleMappings(accountDetails.SortCode);
     var result = new FirstStandardModulusElevenCalculator().Process(accountDetails);
     Assert.True(result);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:MockCalculatorTests.cs

示例11: CanPassBasicModulus11Test

 public void CanPassBasicModulus11Test()
 {
     var accountDetails = new BankAccountDetails("202959", "63748472");
     accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
     var result = _calculator.Process(accountDetails);
     Assert.IsTrue(result);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:FirstStandardModulusElevenCalculatorTests.cs

示例12: KnownSortCodeIsTested

 public void KnownSortCodeIsTested(string sc, string an)
 {
     var accountDetails = new BankAccountDetails(sc, an);
     accountDetails.WeightMappings = _mockModulusWeightTable.Object.GetRuleMappings(accountDetails.SortCode);
     _ruleStep.Process(accountDetails);
     _firstModulusCalculatorStep.Verify(nr => nr.Process(accountDetails));
 }
開發者ID:pauldambra,項目名稱:ModulusChecker,代碼行數:7,代碼來源:ConfirmDetailsAreValidForTestingTests.cs

示例13: CanProcessDoubleAlternateCheck

 public void CanProcessDoubleAlternateCheck()
 {
     var accountDetails = new BankAccountDetails("499273", "12345678");
     accountDetails.WeightMappings = _fakedModulusWeightTable.Object.GetRuleMappings(accountDetails.SortCode);
     var result = _firstStepDblAlCalculator.Process(accountDetails);
     Assert.True(result);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateCalculatorTests.cs

示例14: ExceptionFiveFirstCheckCorrectSecondIncorrect

 public void ExceptionFiveFirstCheckCorrectSecondIncorrect()
 {
     var details = new BankAccountDetails("938063", "15764273");
     var mapping = new ModulusWeightMapping("012345 012346 dblal 2 1 2 1 2 1 2 1 2 1 2 1 2 0 5");
     var actual = _check.GetModulusSum(details, mapping);
     Assert.AreEqual(58, actual);
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:7,代碼來源:DoubleAlternateModulusCheckTests.cs

示例15: ProcessWeightingRule

 protected bool ProcessWeightingRule(BankAccountDetails bankAccountDetails, IModulusWeightMapping modulusWeightMapping)
 {
     var weightingSum = new StandardModulusCheck().GetModulusSum(bankAccountDetails,modulusWeightMapping);
     var remainder = weightingSum%Modulus;
     return modulusWeightMapping.Exception == 4 
                ? bankAccountDetails.AccountNumber.GetExceptionFourCheckValue == remainder
                : remainder == 0;
 }
開發者ID:zopaUK,項目名稱:ModulusChecker,代碼行數:8,代碼來源:BaseModulusCalculator.cs


注:本文中的ModulusChecking.Models.BankAccountDetails類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。