C# Class BudgetAnalyser.Engine.UnitTest.TestHarness.EmbeddedResourceFileReaderWriter

Inheritance: IFileReaderWriter
Mostra file Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
CreateWritableStream ( string fileName ) : Stream

Creates a writable stream to write data into. This is an alternative to IFileReaderWriter.WriteToDiskAsync

FileExists ( string fileName ) : bool

Files the exists.

LoadFirstLinesFromDiskAsync ( string fileName, int lineCount ) : Task

Loads a file from disk.

LoadFromDiskAsync ( string fileName ) : Task

Loads a budget collection xaml file from disk.

WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task

Writes the budget collections to a xaml file on disk.

Method Details

CreateWritableStream() public method

Creates a writable stream to write data into. This is an alternative to IFileReaderWriter.WriteToDiskAsync
public CreateWritableStream ( string fileName ) : Stream
fileName string Full path and filename of the file.
return Stream

FileExists() public method

Files the exists.
public FileExists ( string fileName ) : bool
fileName string Full path and filename of the file.
return bool

LoadFirstLinesFromDiskAsync() public method

Loads a file from disk.
public LoadFirstLinesFromDiskAsync ( string fileName, int lineCount ) : Task
fileName string Full path and filename of the file.
lineCount int The number of lines to load.
return Task

LoadFromDiskAsync() public method

Loads a budget collection xaml file from disk.
public LoadFromDiskAsync ( string fileName ) : Task
fileName string Full path and filename of the file.
return Task

WriteToDiskAsync() public method

Writes the budget collections to a xaml file on disk.
public WriteToDiskAsync ( string fileName, string data ) : System.Threading.Tasks.Task
fileName string
data string
return System.Threading.Tasks.Task