Click or drag to resize

AutoMock Methods

The AutoMock type exposes the following members.

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