StructureMap.AutoMocking
Use this with EXTREME caution. This will replace the active "Container" in accessed
by ObjectFactory with the AutoMockedContainer from this instance
Calling this method will immediately create a "Partial" mock
for the ClassUnderTest using the "Greediest" constructor.
Gets the mock object for type T that would be injected into the constructor function
of the ClassUnderTest
Method to specify the exact object that will be used for
"pluginType." Useful for stub objects and/or static mocks
Method to specify the exact object that will be used for
"pluginType." Useful for stub objects and/or static mocks
Adds an additional mock object for a given T
Useful for array arguments to the ClassUnderTest
object
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 T
Creates, returns, and registers an array of mock objects for type T.
Allows you to "inject" an array of known objects for an
argument of type T[] in the ClassUnderTest
Gets an instance of the ClassUnderTest with mock objects (or stubs) pushed in for all of its dependencies
Accesses the underlying AutoMockedContainer
The Auto Mocking Container for StructureMap
Use this with EXTREME caution. This will replace the active "Container" in accessed
by ObjectFactory with the AutoMockedContainer from this instance
Calling this method will immediately create a "Partial" mock
for the ClassUnderTest using the "Greediest" constructor.
Gets the mock object for type T that would be injected into the constructor function
of the ClassUnderTest
Method to specify the exact object that will be used for
"pluginType." Useful for stub objects and/or static mocks
Method to specify the exact object that will be used for
"pluginType." Useful for stub objects and/or static mocks
Adds an additional mock object for a given T
Useful for array arguments to the ClassUnderTest
object
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 T
Creates, returns, and registers an array of mock objects for type T.
Allows you to "inject" an array of known objects for an
argument of type T[] in the ClassUnderTest
Gets an instance of the ClassUnderTest with mock objects (or stubs) pushed in for all of its dependencies
Accesses the underlying AutoMockedContainer
Provides an "Auto Mocking Container" for the concrete class TARGETCLASS using Moq
The concrete class being tested
Provides an "Auto Mocking Container" for the concrete class TARGETCLASS using Rhino.Mocks
The concrete class being tested