C# Class Proligence.Orchard.Testing.Mocks.ShapeFactoryMock

Inheritance: System.Dynamic.DynamicObject, IShapeFactory
Mostrar archivo Open project: Proligence/OrchardTesting Class Usage Examples

Public Methods

Method Description
Create ( string shapeType ) : IShape
Create ( string shapeType, INamedEnumerable parameters ) : IShape
Create ( string shapeType, INamedEnumerable parameters, Func createShape ) : IShape
Mock ( string shapeType, Func factory ) : void
ShapeFactoryMock ( ) : System
TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool

Method Details

Create() public method

public Create ( string shapeType ) : IShape
shapeType string
return IShape

Create() public method

public Create ( string shapeType, INamedEnumerable parameters ) : IShape
shapeType string
parameters INamedEnumerable
return IShape

Create() public method

public Create ( string shapeType, INamedEnumerable parameters, Func createShape ) : IShape
shapeType string
parameters INamedEnumerable
createShape Func
return IShape

Mock() public method

public Mock ( string shapeType, Func factory ) : void
shapeType string
factory Func
return void

ShapeFactoryMock() public method

public ShapeFactoryMock ( ) : System
return System

TryInvokeMember() public method

public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeMemberBinder
args object
result object
return bool