public Presenter(IView view, IFileDetailProvider fileDetailProvider, IDisplayErrorMessages errorMessage) { var attendeeSource = new AttendeeSource(errorMessage); var swagSource = new SwagSource(errorMessage); var winnersSource = new WinnersSource(fileDetailProvider); _model = new Model(attendeeSource, swagSource, winnersSource, fileDetailProvider.FileLocation); _model.WinnerAvailable += _model_WinnerAvailable; _view = view; view.AttendeeLeft += view_AttendeeLeft; view.AttendeeRefused += view_AttendeeRefused; view.NewWinnerRequested += view_NewWinnerRequested; view.WinnersReportRequired += view_WinnersReportRequired; }
public SwagSource(IDisplayErrorMessages displayErrorMessage) : base(displayErrorMessage, "Swag") { }
public AttendeeSource(IDisplayErrorMessages displayErrorMessage) : base(displayErrorMessage, "Attendee") { }
protected ThingSource(IDisplayErrorMessages displayErrorMessage, string thing) { _thing = thing; _displayErrorMessage = displayErrorMessage; }