Ejemplo n.º 1
0
        private static decimal GenerateAmount(AmountRange amtRange)
        {
            switch (amtRange)
            {
            case AmountRange.UnderOneHundred:
                return(DataGenerator.Amount(25.00m, 99.99m));

            case AmountRange.NoIdsNoThirdParty:
                return(DataGenerator.Amount(25.00m, 500.00m));

            case AmountRange.SingleId:
                return(DataGenerator.Amount(501.00m, 999.00m));

            case AmountRange.TwoIds:
                return(DataGenerator.Amount(1001.00m, 1499.00m));

            case AmountRange.ThirdParty:
                return(DataGenerator.Amount(1501.00m, 2999.00m));

            default:
                return(DataGenerator.Amount(25.00m, 150.00m));
            }
        }