C# Class SuperSimpleViewEngine.Tests.FakeViewEngineHost

Inheritance: IViewEngineHost
Datei anzeigen Open project: grumpydev/SuperSimpleViewEngine Class Usage Examples

Public Methods

Method Description
AntiForgeryToken ( ) : string
ExpandPath ( string path ) : string

Expands a path to include any base paths

FakeViewEngineHost ( ) : System
GetTemplate ( string templateName, object model ) : string

Get the contenst of a template

GetUriString ( string name ) : string

Gets a uri string for a named route

HtmlEncode ( string input ) : string

Html "safe" encode a string

Method Details

AntiForgeryToken() public method

public AntiForgeryToken ( ) : string
return string

ExpandPath() public method

Expands a path to include any base paths
public ExpandPath ( string path ) : string
path string Path to expand
return string

FakeViewEngineHost() public method

public FakeViewEngineHost ( ) : System
return System

GetTemplate() public method

Get the contenst of a template
public GetTemplate ( string templateName, object model ) : string
templateName string Name/location of the template
model object Model to use to locate the template via conventions
return string

GetUriString() public method

Gets a uri string for a named route
public GetUriString ( string name ) : string
name string Named route name
return string

HtmlEncode() public method

Html "safe" encode a string
public HtmlEncode ( string input ) : string
input string Input string
return string