Methods
-
Add
Additional Adds an additional mock object for a given T Useful for array arguments to the ClassUnderTest objectMock For``1() -
Create
Mock Creates, returns, and registers an array of mock objects for type T.Array For``1(Int32) - Get``1() Gets the mock object for type T that would be injected into the constructor function of the ClassUnderTest
-
Inject(Type,
Object) Method to specify the exact object that will be used for "pluginType." Useful for stub objects and/or static mocks - Inject``1(``0) Method to specify the exact object that will be used for "pluginType." Useful for stub objects and/or static mocks
-
Inject
Array``1(``0[]) Allows you to "inject" an array of known objects for an argument of type T[] in the ClassUnderTest -
Partial
Mock Calling this method will immediately create a "Partial" mock for the ClassUnderTest using the "Greediest" constructor.The Class Under Test() -
Use
Concrete So that Aaron Jensen can use his concrete HubService object Construct whatever T is with all mocks, and make sure that the ClassUnderTest gets built with a concrete TClass For``1() -
Use
Mock Forces the auto mocking container to use a mock object for type T. You may have to do this for concrete typesFor Type``1()
Properties
-
Class
Under Gets an instance of the ClassUnderTest with mock objects (or stubs) pushed in for all of its dependenciesTest - Container Accesses the underlying AutoMockedContainer