/// <summary> /// Instantiates a mocking proxy with a given instance name. /// </summary> /// <param name="serverType">The type of object to proxy.</param> /// <param name="mocker">An instance that will mock the behaviour of the real instance.</param> /// <param name="instanceName">The name of the instance being mocked.</param> public MockingProxy(Type serverType, IMocker mocker, string instanceName) : base(serverType) { this.serverType = serverType; this.mocker = mocker; this.instanceName = instanceName; }
/// <summary> /// Instantiates a mocking proxy with a given instance name. /// </summary> /// <param name="serverType">The type of object to proxy.</param> /// <param name="mocker">An instance that will mock the behaviour of the real instance.</param> /// <param name="instanceName">The name of the instance being mocked.</param> public MockingProxy(Type serverType, IMocker mocker, string instanceName) : base(serverType) { this.serverType = serverType; this.mocker = mocker; this.instanceName = instanceName; }
public Settings(IMocker mocker) { this.mocker = mocker; }
public XActivator() { _mocker = new SurfMocker(); }