public MainWindow(IDriveService driveService, IFileSystemService fileSystemService, IStatisticsService statisticsService) { InitializeComponent(); this.driveService = driveService; this.fileSystemService = fileSystemService; this.statisticsService = statisticsService; DataContext = this; DriveInfos = new ObservableCollection <DriveInfo>(); driveService.StartWatcher(SynchronizationContext.Current, DriveInfos); }