RecorderManager Class

Typemock Isolator Developer Guide
Typemock Isolator Natural Mocks� RecorderManager class helps manage the mocks
Inheritance Hierarchy

SystemObject
  TypeMockRecorderManager

Namespace:  TypeMock
Assembly:  TypeMock (in TypeMock.dll) Version: 9.4.1.0 (9.4.1.0)
Syntax

public class RecorderManager

The RecorderManager type exposes the following members.

Properties

  NameDescription
Public propertyStatic memberLastMockedEvent
Retrieve the last Mocked Event
Public propertyStatic memberVerifyMode
Get or Set the VerifyMode of the next expectations
Top
Methods

  NameDescription
Public methodStatic memberCreateMockedObject(Type)
Create a mocked object
Public methodStatic memberCreateMockedObject(Type, Constructor)
Create a mocked object and define constructor Behavior
Public methodStatic memberCreateMockedObject(Type, Constructor, Object)
Create a mocked object, define constructor Behavior and pass arguments to constructor
Public methodStatic memberCreateMockedObject(Type, Constructor, StrictFlags)
Create a mocked object and define constructor Behavior
Public methodStatic memberCreateMockedObject(Type, StrictFlags, Object)
Create a mocked object, define constructor Behavior and pass arguments to constructor
Public methodStatic memberCreateMockedObject(Type, Constructor, StrictFlags, Object)
Create a mocked object, define constructor Behavior and pass arguments to constructor
Public methodStatic memberCreateMockedObjectTMockedType
Create an instance of TMockedType and mock calls made on the instance
Public methodStatic memberCreateMockedObjectTMockedType(Constructor, Object)
Create an instance of TMockedType and mock calls made on the instance, send Constructor behavior and optional arguments
Public methodStatic memberCreateMockedObjectTMockedType(StrictFlags, Object)
Create an instance of TMockedType and mock calls made on the instance, send Strictness and optional arguments
Public methodStatic memberCreateMockedObjectTMockedType(Constructor, StrictFlags, Object)
Create an instance of TMockedType and mock calls made on the instance, send Constructor behavior Strictness and optional arguments
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetLastRecordedMock
Get the last recorded mock and use Reflective Typemock Isolator methods.
Public methodStatic memberGetLastRecordedMockedObject
Returns the object of the last recorded mock or null if non exists
Public methodStatic memberCode exampleGetMockOfT
Returns the mock associated with a specific instance
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHasNoAccessibleCtor
A boolean method that checks if the "type" param has a Non-Public construtor.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberStartRecording
Start a new recording, CAUTION, as long as the recording object is alive ALL methods will be recorded and not called
Public methodStatic memberStopRecording
Stop the recording
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Typemock Isolator supports the innovative Natural Mocks� way of defining expectations by recording the expectations. Natural Mocks� are Strongly Typed and thus supports Compile Time Checks and Refactoring. Using Natural Mocks� it is now much simpler to define and create tests that require isolating other parts of the code. Although the Natural Mocks� is easier, it does not cover all the scenarios, and the normal TyepMock.NET way is required. The two way are compatible and can be used together.

See RecordExpectations for examples
See Also

Reference