Show / Hide Table of Contents

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 Source

Exists(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX