C# Class Spring.Objects.Factory.Xml.ReadOnlyXmlTestResource

Centralised resource getter for loading all of those XML object definition files used in the XML based object factory tests.
Inheritance: IResource
ファイルを表示 Open project: spring-projects/spring-net-codeconfig Class Usage Examples

Public Methods

Method Description
CreateRelative ( string relativePath ) : IResource
GetFilePath ( string fileName, Type associatedTestType ) : string
ReadOnlyXmlTestResource ( string fileName ) : System

Creates a new instance of the Spring.Objects.Factory.Xml.ReadOnlyXmlTestResource class.

ReadOnlyXmlTestResource ( string fileName, Type associatedTestType ) : System

Creates a new instance of the Spring.Objects.Factory.Xml.ReadOnlyXmlTestResource class.

ToString ( ) : string

Method Details

CreateRelative() public method

public CreateRelative ( string relativePath ) : IResource
relativePath string
return IResource

GetFilePath() public static method

public static GetFilePath ( string fileName, Type associatedTestType ) : string
fileName string
associatedTestType System.Type
return string

ReadOnlyXmlTestResource() public method

Creates a new instance of the Spring.Objects.Factory.Xml.ReadOnlyXmlTestResource class.
public ReadOnlyXmlTestResource ( string fileName ) : System
fileName string /// The filename/resourcename (e.g. foo.txt) of the XML file containing the object /// definitions. ///
return System

ReadOnlyXmlTestResource() public method

Creates a new instance of the Spring.Objects.Factory.Xml.ReadOnlyXmlTestResource class.
public ReadOnlyXmlTestResource ( string fileName, Type associatedTestType ) : System
fileName string /// The filename/resourcename (e.g. foo.txt) of the XML file containing the object /// definitions. ///
associatedTestType System.Type /// The of the test class utilising said file. ///
return System

ToString() public method

public ToString ( ) : string
return string