Ejemplo n.º 1
0
        //-------------------------------------------------------------------------
        public virtual void test_resolve()
        {
            FxSingleTrade         test     = FxSingleTrade.builder().product(PRODUCT).info(TRADE_INFO).build();
            ResolvedFxSingleTrade expected = ResolvedFxSingleTrade.of(TRADE_INFO, PRODUCT.resolve(REF_DATA));

            assertEquals(test.resolve(REF_DATA), expected);
        }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------------
        public virtual void test_builder()
        {
            ResolvedFxSingleTrade test = ResolvedFxSingleTrade.builder().info(TRADE_INFO).product(FWD1).build();

            assertEquals(test.Info, TRADE_INFO);
            assertEquals(test.Product, FWD1);
        }
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         ResolvedFxSingleTrade other = (ResolvedFxSingleTrade)obj;
         return(JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product));
     }
     return(false);
 }
Ejemplo n.º 4
0
 internal static ResolvedFxSingleTrade sut2()
 {
     return(ResolvedFxSingleTrade.builder().product(FWD2).build());
 }
Ejemplo n.º 5
0
 //-------------------------------------------------------------------------
 internal static ResolvedFxSingleTrade sut()
 {
     return(ResolvedFxSingleTrade.builder().info(TRADE_INFO).product(FWD1).build());
 }