public void SetUp() { parser = new DefaultSecurityIdParser(); securityIds = new Dictionary <string, string>(); // add some CUSIP ids securityIds.Add("037833100", SecurityIdType.CUSIP); securityIds.Add("931142103", SecurityIdType.CUSIP); securityIds.Add("J0176K103", SecurityIdType.CUSIP); securityIds.Add("G4770P115", SecurityIdType.CUSIP); // add some ISIN securityIds.Add("US0378331005", SecurityIdType.ISIN); securityIds.Add("AU0000XVGZA3", SecurityIdType.ISIN); securityIds.Add("GB0002634946", SecurityIdType.ISIN); securityIds.Add("DE000A0BL849", SecurityIdType.ISIN); // add some SEDOL securityIds.Add("B1F3M59", SecurityIdType.SEDOL); securityIds.Add("B06G5D9", SecurityIdType.SEDOL); securityIds.Add("B1H54P7", SecurityIdType.SEDOL); // add some SymbolTicker securityIds.Add("AGC", SecurityIdType.SymbolTicker); securityIds.Add("A", SecurityIdType.SymbolTicker); securityIds.Add("BRK.B", SecurityIdType.SymbolTicker); securityIds.Add("MSFT ", SecurityIdType.SymbolTicker); }
public void TearDown() { fsm = null; securityLookupServices = null; combiner = null; parser = null; cache = null; }
protected void SetUp() { parser = new DefaultSecurityIdParser(); combiner = new DefaultSecurityDataCombiner(); lookupService = new SecurityLookupServiceMock(); dataCache = new SimpleCache(3, new FIFOCacheEvictionStrategy(), TimeSpan.FromSeconds(10)); securityLookupServices = new Dictionary <string, ISecurityLookupService>(); securityLookupServices[SecurityIdType.CUSIP] = lookupService; securityLookupServices[SecurityIdType.ISIN] = lookupService; securityLookupServices[SecurityIdType.SEDOL] = lookupService; securityLookupServices[SecurityIdType.SymbolTicker] = lookupService; instance = new FinancialSecurityManager(securityLookupServices, combiner, true, true, dataCache); }
public void SetUp() { // create a dictionary holding the security id types to ISecurityLookupService // objects mappings securityLookupServices = new Dictionary <string, ISecurityLookupService>(); securityLookupServices[SecurityIdType.CUSIP] = new CustomSecurityLookupService(); securityLookupServices[SecurityIdType.ISIN] = new CustomSecurityLookupService(); securityLookupServices[SecurityIdType.SEDOL] = new CustomSecurityLookupService(); securityLookupServices[SecurityIdType.SymbolTicker] = new CustomSecurityLookupService(); //Create DefaultSecurityDataCombiner combiner = new DefaultSecurityDataCombiner(); //Create cache cache = new SimpleCache(); //Create DefaultSecurityIdParser parser = new DefaultSecurityIdParser(); fsm = new FinancialSecurityManager(parser, securityLookupServices, combiner, false, true, cache); }
protected void SetUp() { instance = new DefaultSecurityIdParser(); }
public void TearDown() { test = null; }
public void SetUp() { test = new DefaultSecurityIdParser(); }
public void TearDown() { parser = null; }