public CreateSessionWindowVm(IApplicationService applicationService, ITrainingQueries trainingQueries, ITrainerQueries trainerQueries, ILocationQueries locationQueries, AppointmentItem appointmentItem)
        {
            _appointmentItem    = appointmentItem ?? throw new ArgumentNullException(nameof(appointmentItem));
            _applicationService = applicationService ?? throw new ArgumentNullException(nameof(applicationService));
            _locationQueries    = locationQueries ?? throw new ArgumentNullException(nameof(locationQueries));
            _trainerQueries     = trainerQueries ?? throw new ArgumentNullException(nameof(trainerQueries));
            _trainingQueries    = trainingQueries ?? throw new ArgumentNullException(nameof(trainingQueries));

            AddTrainingCommand = new RelayCommandAsync(ExecuteAddTrainingAsync);
            AddLocationCommand = new RelayCommandAsync(ExecuteAddLocationAsync);
            AddTrainerCommand  = new RelayCommandAsync(ExecuteAddTrainerAsync);
        }
Exemplo n.º 2
0
 public UpdateTrainer(EventBus eventBus, ITrainerQueries trainerQueries) : base(eventBus)
 {
     _trainerQueries = trainerQueries ?? throw new ArgumentNullException(nameof(trainerQueries));
 }
Exemplo n.º 3
0
 public TrainerListVm(IApplicationService applicationService, ITrainerQueries trainerQueries) : base(applicationService)
 {
     _trainerQueries = trainerQueries ?? throw new ArgumentNullException(nameof(trainerQueries));
 }