Summary
Finds (creating if needed) the actual mock for the provided type.
- Assembly
- Rocket
.Surgery .Extensions .Testing .Moq .dll - Namespace
- Rocket
.Surgery .Extensions .Testing - Containing Type
- AutoMock
Syntax
public Mock<T> Mock<T>() where T : class
Type Parameters
Name | Description |
---|---|
T | Type to mock. |
Return Value
Type | Description |
---|---|
Mock |
A mock of type T. |