public AvailableCarsViewModel(IMessageDialogService messageDialogService, IPreflightService preflightService, ICarTypeLookupDataRepository carTypeLookupDataService, ICarRepository carRepository, IBookingRepository bookingRepository) { _carTypeLookupDataService = carTypeLookupDataService; _carRepository = carRepository; _bookingRepository = bookingRepository; _messageDialogService = messageDialogService; _preflightService = preflightService; FilterCommand = new DelegateCommand(OnFilterExecute); RentCommand = new DelegateCommand(OnRentExecute, OnRentCanExecute); CarTypes = new ObservableCollection <LookupItem>(); Cars = new ObservableCollection <CarWrapper>(); }
public void Setup() { _bookingRepository = Substitute.For <IBookingRepository>(); _preflightService = new PreflightService(_bookingRepository); }