/// <summary> /// Convenience constructor for stubbing a service with a fake. /// </summary> /// <param name="fake">A stub used to facilitate testing.</param> /// <param name="endpoint">A fake, for rare cases it may be needed.</param> /// <param name="creds">A fake, for rare cases it may be needed.</param> /// <param name="channel">A fake, for rare cases it may be needed.</param> public Proxy(T fake, ServiceEndpoint endpoint, ClientCredentials creds, IClientChannel channel) { Fake = new FakeClient <T>(fake, endpoint, creds, channel); }
/// <summary> /// Convenience constructor for stubbing a service with a fake. /// </summary> /// <param name="fake">A stub used to facilitate testing.</param> public Proxy(T fake) { Fake = new FakeClient <T>(fake); }