public virtual void test_of_trade()
        {
            CdsCalibrationTrade test = CdsCalibrationTrade.of(TRADE, QUOTE1);

            assertEquals(test.UnderlyingTrade, TRADE);
            assertEquals(test.Quote, QUOTE1);
            assertEquals(test.Info, TRADE.Info);
        }
        //-------------------------------------------------------------------------
        public virtual void coverage_trade()
        {
            CdsCalibrationTrade test1 = CdsCalibrationTrade.of(TRADE, QUOTE1);

            coverImmutableBean(test1);
            CdsCalibrationTrade test2 = CdsCalibrationTrade.of(CdsTrade.builder().product(PRODUCT).info(TRADE_INFO).build(), QUOTE2);

            coverBeanEquals(test1, test2);
        }
示例#3
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         CdsCalibrationTrade other = (CdsCalibrationTrade)obj;
         return(JodaBeanUtils.equal(underlyingTrade, other.underlyingTrade) && JodaBeanUtils.equal(quote, other.quote));
     }
     return(false);
 }
        public virtual void test_serialization_trade()
        {
            CdsCalibrationTrade test = CdsCalibrationTrade.of(TRADE, QUOTE1);

            assertSerialization(test);
        }