Beispiel #1
0
        public void BondPDFRedemption2()
        {
            bool         flag   = false;
            const double feeAmt = -10;
            double       accr   = 1;

            _fees.Clear();

            Fee fee = new Fee();

            fee.Amount = feeAmt;
            fee.Type   = FEETYPE.PDF;

            _fees.Add(fee);

            FeeData FeeData = new FeeData();

            FeeData._amount    = feeAmt;
            FeeData._index     = 0;
            FeeData._redmPrice = 1.0;
            FeeData._sign      = TradeSign.SELL;
            FeeData._feeList   = _fees;

            StrategyAccrContext context = new StrategyAccrContext(FeeData);

            context.SetStrategy(StrategyTradeType.BOND);

            context.Execute(ref accr, ref flag);
            Assert.IsTrue(flag);
        }
Beispiel #2
0
 public BondNonPDFStrategy(FeeData FeeData) : base(FeeData)
 {
 }
Beispiel #3
0
 public BondPDFRedemptionStrategy(FeeData FeeData) : base(FeeData)
 {
 }
 public StrategyAccr(FeeData FeeData)
 {
     _FeeData = FeeData;
 }
Beispiel #5
0
 public BondStrategy(FeeData FeeData) : base(FeeData)
 {
 }