public SearchController(ICustomerService customerService, IEmployeeReservationService reservationService) { if (customerService == null) throw new ArgumentNullException("customerService"); if (reservationService == null) throw new ArgumentNullException("reservationService"); this.customerService = customerService; this.reservationService = reservationService; }
public EmployeeReservationViewModel(ICustomerService customerService, IEmployeeReservationService injectedService) { if (customerService == null) throw new ArgumentNullException("customerService"); if (injectedService == null) throw new ArgumentNullException("injectedService"); this.customerService = customerService; this.service = injectedService; this.Skills = new MultiSelectCollectionView<Skill>(this.availableSkills); this.CareerLevels = new MultiSelectCollectionView<CareerLevel>(this.availableCareerLevels); this.Init(); this.CareerLevels.SelectedItems.CollectionChanged += this.OnFilterSelectionChanged; this.Skills.SelectedItems.CollectionChanged += this.OnFilterSelectionChanged; this.PropertyChanged += (o, e) => this.RefreshValues(); this.reserveEmployeeCommand = new DelegateCommand<EmployeeSearchResult>(this.OnReservationTriggered); }