示例#1
0
        public ResourceFileViewModel(FilesService filesService)
        {
            this.filesService = filesService;
            files = new ObservableCollection<ResourceFile>(filesService.ResourceFiles());

            if (files.Count > 0) selectedFile = files.First();
        }
示例#2
0
        public void FilesTest()
        {
            FilesService fs = new FilesService(@"x:\softedule");

            int count = fs.ResourceFiles().Count();

            Assert.AreEqual(1, count);
        }