public ResourceFileViewModel(FilesService filesService) { this.filesService = filesService; files = new ObservableCollection<ResourceFile>(filesService.ResourceFiles()); if (files.Count > 0) selectedFile = files.First(); }
public void FilesTest() { FilesService fs = new FilesService(@"x:\softedule"); int count = fs.ResourceFiles().Count(); Assert.AreEqual(1, count); }