//------------------------------------------------------------------------- public virtual void test_of() { ResolvedFraTrade test = ResolvedFraTrade.of(TRADE_INFO, PRODUCT); assertEquals(test.Product, PRODUCT); assertEquals(test.Info, TRADE_INFO); }
public virtual void test_builder() { ResolvedFraTrade test = ResolvedFraTrade.builder().product(PRODUCT).build(); assertEquals(test.Info, TradeInfo.empty()); assertEquals(test.Product, PRODUCT); }
public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj != null && obj.GetType() == this.GetType()) { ResolvedFraTrade other = (ResolvedFraTrade)obj; return(JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product)); } return(false); }
internal static ResolvedFraTrade sut2() { return(ResolvedFraTrade.builder().product(PRODUCT2).build()); }
//------------------------------------------------------------------------- internal static ResolvedFraTrade sut() { return(ResolvedFraTrade.builder().info(TRADE_INFO).product(PRODUCT).build()); }