Interface IReadOnlyResources
Interface to retrieve named resources that exist in a named container.
Namespace: FakeHttp
Assembly: FakeHttp.dll
Syntax
public interface IReadOnlyResources
Methods
| Improve this Doc View SourceExists(String, String)
Checks whether the specified file exists
Declaration
bool Exists(string folder, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | folder | The folder name |
| String | fileName | The file name |
Returns
| Type | Description |
|---|---|
| Boolean | Flag indicating whether file exists |
LoadAsStream(String, String)
Loads a given file as a stream
Declaration
Stream LoadAsStream(string folder, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | folder | The folder name |
| String | fileName | The file name |
Returns
| Type | Description |
|---|---|
| Stream | File's contents as a stream |
LoadAsString(String, String)
Loads a given file as a string
Declaration
string LoadAsString(string folder, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | folder | The folder name |
| String | fileName | The file name |
Returns
| Type | Description |
|---|---|
| String | The file's contents as a string |