public void WhenUserCalculatesEnddateDiscount() { var c = new GetDiscountValues(); try { Response = c.GetEndDateDiscount(Itemtype,EndDate); } catch (Exception e) { if (e is KeyNotFoundException) { KeynotfoundException = e as KeyNotFoundException; } Exception = e; } }
public void WhenUserWantToCalculateDiscountForUsertype() { var c = new GetDiscountValues(); try { Response = c.GetUsertypeDiscount(Usertype); } catch (Exception e) { if (e is KeyNotFoundException) { KeynotfoundException = e as KeyNotFoundException; } Exception = e; } }