PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TestUtils.AspNetCore.Fakes.FakeFeatureCollection Class Reference

Implements a fake feature collection. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeFeatureCollection:
PeanutButter.TestUtils.AspNetCore.Fakes.IFake

Public Member Functions

IEnumerator< KeyValuePair< Type, object > > GetEnumerator ()
TFeature Get< TFeature > ()
void Set< TFeature > (TFeature instance)
void SetFactory< TFeature > (Func< TFeature > func)
 Sets a factory for the service.
void SetFactory (Type type, Func< object > factory)
 Sets a factory for the service.

Properties

bool IsReadOnly [get]
int Revision [get, set]
object this[Type key] [get, set]

Detailed Description

Implements a fake feature collection.

Member Function Documentation

◆ SetFactory()

void PeanutButter.TestUtils.AspNetCore.Fakes.FakeFeatureCollection.SetFactory ( Type type,
Func< object > factory )

Sets a factory for the service.

Parameters
type
factory

◆ SetFactory< TFeature >()

Sets a factory for the service.

Parameters
func
Template Parameters
TFeature
Exceptions
NotImplementedException

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeFeatureCollection.cs