C# Class Microsoft.Practices.Prism.Tests.ServiceLocatorExtensionsFixture.MockServiceLocator

Inheritance: ServiceLocatorImplBase
显示文件 Open project: xperiandri/PortablePrism

Public Properties

Property Type Description
ResolveMethod Func

Public Methods

Method Description
MockServiceLocator ( Func resolveMethod ) : System

Protected Methods

Method Description
DoGetAllInstances ( Type serviceType ) : IEnumerable
DoGetInstance ( Type serviceType, string key ) : object

Method Details

DoGetAllInstances() protected method

protected DoGetAllInstances ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable

DoGetInstance() protected method

protected DoGetInstance ( Type serviceType, string key ) : object
serviceType System.Type
key string
return object

MockServiceLocator() public method

public MockServiceLocator ( Func resolveMethod ) : System
resolveMethod Func
return System

Property Details

ResolveMethod public_oe property

public Func ResolveMethod
return Func