Property | Type | Description | |
---|---|---|---|
OnBodyRender | TestSectionRender | ||
OnViewRender | TestViewRender |
Method | Description | |
---|---|---|
HasSection ( string sectionName ) : bool |
Determines whether the current component declaration on the view has the specified section.
|
|
MockViewComponentContext ( string componentName, |
Initializes a new instance of the MockViewComponentContext class.
|
|
RenderBody ( ) : void |
Renders the component body.
|
|
RenderBody ( |
Renders the body into the specified TextWriter
|
|
RenderSection ( string sectionName ) : void |
Renders the the specified section. No exception will the throw if the section cannot be found.
|
|
RenderSection ( string sectionName, |
Renders the the specified section. No exception will the throw if the section cannot be found.
|
|
RenderView ( string name, |
Renders the view specified to the writer.
|
Method | Description | |
---|---|---|
MockViewComponentContext ( ) : System |
Initializes a new instance of the MockViewComponentContext class.
|
public HasSection ( string sectionName ) : bool | ||
sectionName | string | Name of the section. |
return | bool |
protected MockViewComponentContext ( ) : System | ||
return | System |
public MockViewComponentContext ( string componentName, |
||
componentName | string | Name of the component. |
writer | The writer. | |
viewEngine | IViewEngine | The view engine. |
return | System |
public RenderBody ( |
||
writer | The writer. | |
return | void |
public RenderSection ( string sectionName ) : void | ||
sectionName | string | Name of the section. |
return | void |
public RenderSection ( string sectionName, |
||
sectionName | string | Name of the section. |
writer | The writer to output the section content. | |
return | void |
public RenderView ( string name, |
||
name | string | The view template name |
writer | A writer to output | |
return | void |