ModulusChecking.Models.BankAccountDetails.GetExceptionTwoAlternativeWeights C# (CSharp) Метод

GetExceptionTwoAlternativeWeights() публичный Метод

public GetExceptionTwoAlternativeWeights ( int originalWeights ) : int[]
originalWeights int
Результат int[]
        public int[] GetExceptionTwoAlternativeWeights(int[] originalWeights)
        {
            if (AccountNumber.IntegerAt(0) != 0)
            {
                return AccountNumber.IntegerAt(6) == 9
                                              ? AisNotZeroAndGisNineWeights
                                              : AisNotZeroAndGisNotNineWeights;
            }
            return originalWeights;
        }

Usage Example

 public void CanGetSecondAlternativeExceptionTwoValue()
 {
     var target = new BankAccountDetails("123456", "10000090")
                      {
                          WeightMappings = BuildMappingList("123456", 1, 1)
                      };
     Assert.AreEqual(BankAccountDetails.AisNotZeroAndGisNineWeights, target.GetExceptionTwoAlternativeWeights(new int[1]));
 }
All Usage Examples Of ModulusChecking.Models.BankAccountDetails::GetExceptionTwoAlternativeWeights