public TreeBasedTallyService(ICruiseDialogService dialogService, ITallyDataservice tallyDataservice, ISampleSelectorDataService sampleSelectorDataservice) { TallyDataservice = tallyDataservice ?? throw new ArgumentNullException(nameof(TallyDataservice)); SampleSelectorDataservice = sampleSelectorDataservice ?? throw new ArgumentNullException(nameof(SampleSelectorDataservice)); DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); }
public PlotTallyService(ICruiseDialogService dialogService, IPlotDatastore plotDataservice, ISampleSelectorDataService sampleSelectorDataservice) { PlotDataservice = plotDataservice ?? throw new ArgumentNullException(nameof(plotDataservice)); SampleSelectorDataservice = sampleSelectorDataservice ?? throw new ArgumentNullException(nameof(sampleSelectorDataservice)); DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); }
public TreeCountEditViewModel(ICruiseNavigationService navigationService, IDataserviceProvider datastoreProvider, ICruiseDialogService dialogService) { if (datastoreProvider is null) { throw new ArgumentNullException(nameof(datastoreProvider)); } TallyDataservice = datastoreProvider.GetDataservice <ITallyDataservice>(); TallyPopulationDataservice = datastoreProvider.GetDataservice <ITallyPopulationDataservice>(); DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); NavigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); }
public TreeErrorEditViewModel(IDataserviceProvider datastoreProvider, ICruiseDialogService dialogService) { Datastore = datastoreProvider.GetDataservice <ICuttingUnitDatastore>(); DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); }