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); }
public void TearDown() { test = null; }
public void SetUp() { test = new DefaultSecurityDataCombiner(); }
public void TearDown() { combiner = null; }
public void SetUp() { combiner = new DefaultSecurityDataCombiner(); first = new SecurityData("037833100", "c1", new string[] { "931142103", "J0176K103" }); second = new SecurityData("931142103", "c1", new string[] { "J0176K103", "G4770P115" }); }