Example #1
0
 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();
 }
Example #2
0
 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();
     
 }