C# Class Snooze.AutoMock.Castle.MoqContrib.AutoMock.MockGenerator

Inheritance: MoqContrib.AutoMock.IMockGenerator
Afficher le fichier Open project: nhsevidence/Snooze

Méthodes publiques

Méthode Description
Generate ( Type type ) : Mock

Central location for creating mocks. The mocks created here can be cast to Mock<T> later.

Private Methods

Méthode Description
GetMockType ( Type type ) : Type
InstantiateMock ( Type type ) : Mock
InstantiateMock ( Type type, object parameters ) : Mock
InstantiateMockForConstructor ( Type type, ConstructorInfo ctor ) : Mock
ResolveConstructorAndInstantiateMock ( Type type ) : Mock

Method Details

Generate() public méthode

Central location for creating mocks. The mocks created here can be cast to Mock<T> later.
public Generate ( Type type ) : Mock
type System.Type the type of mock to generate
Résultat Mock