Beispiel #1
0
        public SearchAirlinesViewModel(
            IAsyncServiceExecutor serviceExecutor,
            INavigator navigator,
            FlightsFilter filter)
        {
            if (serviceExecutor == null)
            {
                throw new ArgumentNullException("serviceExecutor");
            }
            if (navigator == null)
            {
                throw new ArgumentNullException("navigator");
            }
            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            _serviceExecutor            = serviceExecutor;
            _navigator                  = navigator;
            _filter                     = filter;
            _airlinesInternalCollection = new ObservableCollection <AirlineEntity>();
            _airlinesCollection         = new ReadOnlyObservableCollection <AirlineEntity>(_airlinesInternalCollection);
            _faresSearchProcess         = new FaresSearchProcess(_serviceExecutor);

            Initialize();
        }
Beispiel #2
0
        public FaresSearchProcess(IAsyncServiceExecutor serviceExecutor)
        {
            if (serviceExecutor == null)
            {
                throw new ArgumentNullException("serviceExecutor");
            }

            _serviceExecutor = serviceExecutor;
        }