Exemple #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);
        }
Exemple #2
0
        public virtual void test_builder()
        {
            FxSingleTrade test = FxSingleTrade.builder().product(PRODUCT).build();

            assertEquals(test.Info, TradeInfo.empty());
            assertEquals(test.Product, PRODUCT);
        }
Exemple #3
0
 internal static FxSingleTrade sut2()
 {
     return(FxSingleTrade.builder().product(PRODUCT2).build());
 }
Exemple #4
0
 //-------------------------------------------------------------------------
 internal static FxSingleTrade sut()
 {
     return(FxSingleTrade.builder().info(TradeInfo.of(date(2014, 6, 30))).product(PRODUCT).build());
 }