public virtual void test_of_3args() { IndexQuoteId test = IndexQuoteId.of(GBP_SONIA, FIELD, OBS_SOURCE); assertEquals(test.Index, GBP_SONIA); assertEquals(test.FieldName, FIELD); assertEquals(test.ObservableSource, OBS_SOURCE); assertEquals(test.StandardId, StandardId.of("OG-Index", GBP_SONIA.Name)); assertEquals(test.MarketDataType, typeof(Double)); assertEquals(test.ToString(), "IndexQuoteId:GBP-SONIA/Field/Vendor"); }
//------------------------------------------------------------------------- public virtual void test_of_1arg() { IndexQuoteId test = IndexQuoteId.of(GBP_SONIA); assertEquals(test.Index, GBP_SONIA); assertEquals(test.FieldName, FieldName.MARKET_VALUE); assertEquals(test.ObservableSource, ObservableSource.NONE); assertEquals(test.StandardId, StandardId.of("OG-Index", GBP_SONIA.Name)); assertEquals(test.MarketDataType, typeof(Double)); assertEquals(test.ToString(), "IndexQuoteId:GBP-SONIA/MarketValue"); }