Esempio n. 1
0
		/// <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;
		}
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 public Settings(IMocker mocker)
 {
     this.mocker = mocker;
 }
Esempio n. 4
0
 public XActivator()
 {
     _mocker = new SurfMocker();
 }