Table of Contents

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 Type

The 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 Type

The type of component to create.

Returns

IComponent
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.