예제 #1
0
 public DistanceSummaryViewModel(IHealthKitDataWebService healthKitDataWebService)
 {
     m_healthKitdataObject = new HealthKitData {
         PersonId = 3, DistanceReadings = new DistanceReading {
         }, HeartRateReadings = new HeartRateReading {
         }, Device = Container.Resolve <IDevice>().Device
     };
     m_healthKitDataDecorator = new HealthKitDataDecorator(Container.Singleton <IHealthKitAccess> (), m_healthKitdataObject);
     StartDecoration();
     m_healthKitDataWebService = healthKitDataWebService;
     m_healthKitDataFromServer = new ObservableCollection <HealthKitData> ();
     m_uploadCommand           = new RelayCommand(() => UploadDataToHealthKitServer(), () => true);    // => CanUploadHealthKitDataToServer());
     m_GetDataCommand          = new DelegateCommand(GetDataFromHealthKitServer, () => true);
     m_reloadCommand           = new DelegateCommand(StartDecoration, () => true);
 }
 public void Init()
 {
     m_healthKitDataWebClient = new IntegrationTestableHealthKitDataWebService();
 }