/// <summary> /// Creates a new <see cref="IMethodOptions{T}"/> instance. /// </summary> /// <param name="repository">the repository for this expectation</param> /// <param name="record">the recorder for this proxy</param> /// <param name="proxy">the proxy for this expectation</param> /// <param name="expectation">Expectation.</param> public MethodOptions( MockRepository repository, RecordMockState record, IMockedObject proxy, IExpectation expectation) { this.expectation = expectation; this.proxy = proxy; this.repository = repository; this.record = record; }
/// <summary> /// Creates a new <see cref="ReplayMockState"/> instance. /// </summary> /// <param name="previousState">The previous state for this method</param> public ReplayMockState(RecordMockState previousState) { this.repository = previousState.Repository; this.proxy = previousState.Proxy; }
/// <summary> /// Initializes a new instance of the <see cref="StubReplayMockState"/> class. /// </summary> /// <param name="previousState">The previous state for this method</param> public StubReplayMockState(RecordMockState previousState) : base(previousState) { }