public EditPriceViewModel(IMarketDataObject model, IYieldCurve yieldCurve) { _yieldCurve = yieldCurve; if (model == null) { throw new Exception("Bond passed in is null"); } _bond = (IBondModel)model; _cleanPrice = new QuarkPrice(); }