//------------------------------------------------------------------------- public virtual void test_resolve() { DsfTrade test = sut(); ResolvedDsfTrade expected = ResolvedDsfTrade.builder().info(TRADE_INFO).product(PRODUCT.resolve(REF_DATA)).quantity(QUANTITY).tradedPrice(TradedPrice.of(TRADE_DATE, PRICE)).build(); assertEquals(test.resolve(REF_DATA), expected); }
//------------------------------------------------------------------------- public virtual void test_resolve() { ResolvedDsfTrade expected = ResolvedDsfTrade.builder().info(POSITION_INFO).product(PRODUCT.resolve(REF_DATA)).quantity(QUANTITY).build(); assertEquals(sut().resolve(REF_DATA), expected); }
//------------------------------------------------------------------------- internal static ResolvedDsf sut() { return(PRODUCT.resolve(REF_DATA)); }