public StartCompetitionPresenter(IStartCompetition view, ResultsContainer resultsContainer) { ResultsContainer = resultsContainer; if (view == null) { throw new ArgumentNullException("View cannot be null"); } View = view; }
public StartCompetitionPresenter(IStartCompetition view) { AgeGroupTypesContainer = new AgeGroupTypesContainer(); AgeGroupContainer = new AgeGroupContainer(); CompetitorsContainer = new CompetitorsContainer(); CompetitionContainer = new CompetitionContainer(); SubGroupsContainer = new SubGroupsContainer(); EventsContainer = new EventsContainer(); EventTypes = new EventTypesContainer(); ResultsContainer = new ResultsContainer(); CompetitionEvents = new CompetitionEventsContainer(); if (view == null) { throw new ArgumentNullException("View cannot be null"); } View = view; }