public MainViewModel(IAddressRepository addressRepository, IProgressNotificationService progressNotificationService)
        {
            this.addressRepository = addressRepository;
            Addresses = addressRepository.GetAddresses().Select(a => new AddressViewModel(a)).ToList();

            this.progressNotificationService = progressNotificationService;

            LocateMe = new RelayCommand(SendMyLocationMessage);
            Nearest = new RelayCommand(SendNearestLocationMessage);
            Directions = new RelayCommand(SendNearestDirectionsMessage);
        }
        public MainViewModel(IAddressRepository addressRepository, IProgressNotificationService progressNotificationService)
        {
            this.addressRepository = addressRepository;
            Addresses = addressRepository.GetAddresses().Select(a => new AddressViewModel(a)).ToList();

            this.progressNotificationService = progressNotificationService;

            LocateMe   = new RelayCommand(SendMyLocationMessage);
            Nearest    = new RelayCommand(SendNearestLocationMessage);
            Directions = new RelayCommand(SendNearestDirectionsMessage);
        }
Beispiel #3
0
 public ProgressNotificationController(IProgressNotificationService progressNotificationService)
 {
     ProgressNotificationService = progressNotificationService;
 }
Beispiel #4
0
 public ChallengeNotificationFilterImpl(IProgressNotificationService notifier)
 {
     _notifier = notifier;
 }
 public static IProgressNotificationService Resolve(IProgressNotificationService service)
 {
     return(service ?? new ConsoleProgressNotificationService());
 }