public void PriceAndPublishEverything(IPricePublicher pricePublicher, IMarketDataRetriever marketDataRetriever) { var underlyings = Perimeter.GetPerimeter(_allUnderlyings); foreach (var underlying in underlyings) { var pricingTask = new PricingTask(marketDataRetriever, pricePublicher); pricingTask.PriceAndPublish(underlying); } }
public PricingTask(IMarketDataRetriever marketMarketDataRetriever) { _marketMarketDataRetriever = marketMarketDataRetriever; }
public PricingTask(IMarketDataRetriever marketMarketDataRetriever, IPricePublicher pricePublicher) : this(marketMarketDataRetriever) { _marketMarketDataRetriever = marketMarketDataRetriever; _pricePublicher = pricePublicher; }