public void SetEndpoint_IsCalledWith_FullNamespaceOfServiceInterface() { var config = Substitute.For <IRetryingProxyConfigurator>(); DefaultProxyConfigurator.Configure <ITestService>(config); config .Received(1) .UseDefaultEndpoint(); }
public void SetEndpoint_IsCalledWith_FullNamespaceOfServiceInterface() { var mockProxy = new Mock <IRetryingProxyConfigurator>(); DefaultProxyConfigurator.Configure <ITestService>(mockProxy.Object); mockProxy.Verify( m => m.UseDefaultEndpoint(), Times.Once()); }