| AutoMock Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: Autofac.Extras.Moq
 Syntax
SyntaxThe AutoMock type exposes the following members.
 Properties
Properties| Name | Description | |
|---|---|---|
|  | Container | 
            Gets the IContainer that handles the component resolution.
             | 
|  | MockRepository | 
            Gets the MockRepository instance responsible for expectations and mocks.
             | 
|  | VerifyAll | 
            Gets or sets a value indicating whether all mocks are verified.
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CreateT | 
            Resolve the specified type in the container (register it if needed).
             | 
|  | Dispose | 
            Verifies mocks and disposes internal container.
             | 
|  | Dispose(Boolean) | 
            Handles disposal of managed and unmanaged resources.
             | 
|  | Equals | Determines whether the specified object is equal to the current object.(Inherited from Object.) | 
|  | Finalize | 
            Finalizes an instance of the AutoMock class.
            (Overrides ObjectFinalize.) | 
|   | GetFromRepository(MockRepository) | 
            Create new AutoMock instance that will create mocks with behavior defined by a repository.
             | 
|   | GetFromRepository(MockRepository, ActionContainerBuilder) | 
            Create new AutoMock instance that will create mocks with behavior defined by a repository.
             | 
|  | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
|   | GetLoose | 
            Create new AutoMock instance with loose mock behavior.
             | 
|   | GetLoose(ActionContainerBuilder) | 
            Create new AutoMock instance with loose mock behavior.
             | 
|   | GetStrict | 
            Create new AutoMock instance with strict mock behavior.
             | 
|   | GetStrict(ActionContainerBuilder) | 
            Create new AutoMock instance with strict mock behavior.
             | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | MemberwiseClone | Creates a shallow copy of the current Object.(Inherited from Object.) | 
|  | MockT | 
            Finds (creating if needed) the actual mock for the provided type.
             | 
|  | ToString | Returns a string that represents the current object.(Inherited from Object.) | 
 See Also
See Also