Interface IComponentFactory
- Namespace
- Bunit
- Assembly
- Bunit.Core.dll
Represents a component factory.
public interface IComponentFactory
- Extension Methods
Methods
CanCreate(Type)
Check if the factory can create a component of type componentType
or a replacement for it.
bool CanCreate(Type componentType)
Parameters
componentType
TypeThe type that should be created or replaced.
Returns
- bool
True if the factory can create the type; false otherwise.
Create(Type)
Create a component of type componentType
or a replacement for it.
IComponent Create(Type componentType)
Parameters
componentType
TypeThe type of component to create.