Click or drag to resize

AutoMock Class

Wrapper around Autofac and Autofac.Extras.Moq.
Inheritance Hierarchy
SystemObject
  Autofac.Extras.MoqAutoMock

Namespace:  Autofac.Extras.Moq
Assembly:  Autofac.Extras.Moq (in Autofac.Extras.Moq.dll) Version: 6.0.0+4195b730a1f4c2330f7a6e7642c9ad63581968b7
Syntax
public class AutoMock : IDisposable

The AutoMock type exposes the following members.

Properties
  NameDescription
Public propertyContainer
Gets the IContainer that handles the component resolution.
Public propertyMockRepository
Gets the MockRepository instance responsible for expectations and mocks.
Public propertyVerifyAll
Gets or sets a value indicating whether all mocks are verified.
Top
Methods
  NameDescription
Public methodCreateT
Resolve the specified type in the container (register it if needed).
Public methodDispose
Verifies mocks and disposes internal container.
Protected methodDispose(Boolean)
Handles disposal of managed and unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the AutoMock class.
(Overrides ObjectFinalize.)
Public methodStatic memberGetFromRepository(MockRepository)
Create new AutoMock instance that will create mocks with behavior defined by a repository.
Public methodStatic memberGetFromRepository(MockRepository, ActionContainerBuilder)
Create new AutoMock instance that will create mocks with behavior defined by a repository.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetLoose
Create new AutoMock instance with loose mock behavior.
Public methodStatic memberGetLoose(ActionContainerBuilder)
Create new AutoMock instance with loose mock behavior.
Public methodStatic memberGetStrict
Create new AutoMock instance with strict mock behavior.
Public methodStatic memberGetStrict(ActionContainerBuilder)
Create new AutoMock instance with strict mock behavior.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMockT
Finds (creating if needed) the actual mock for the provided type.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also