コード例 #1
0
        public void da_finds_files()
        {
            // arrange
            var fileStoreLocations = new FileStorageLocations();
            var fileStoreLocation  = fileStoreLocations.Locations.First();

            // act


            var files = DirectoryAccess.GetDirContent(fileStoreLocation.Location, fileStoreLocation.Filter);

            // assert
            Assert.NotEmpty(files);
            Assert.True(files.Count > 0);
        }
コード例 #2
0
        public LogFileViewModel(IInputBox inputBox)
        {
            InputBox = inputBox;

            FileStoreLocations = FileStorageLocations.Create();



            OpenFileCommand = new DelegateCommand <FileInfo>(new Action <FileInfo>(fi =>
            {
                FileText = DirectoryAccess.GetFileContent(fi.FullName);

                this.OnDisplayPopupWindow(FileText);
                OnPropertyChanged("FileText");
            }));
        }