public DiscountsPresenter(IDiscountsView view, ITransactionReportsService service, IReportManager reportManager) { ArgumentChecker.ThrowIfNull(view, "view"); ArgumentChecker.ThrowIfNull(service, "service"); ArgumentChecker.ThrowIfNull(reportManager, "reportManager"); this.reportManager = reportManager; this.view = view; this.service = service; }
/// <summary> /// Create a DiscountPresenter. /// </summary> /// <param name="discountsView"></param> public DiscountsPresenter(IDiscountsView discountsView) { this.discountsView = discountsView; viewExceptionHandler = new ViewExceptionHandler(); }