public void Discover_uses_Options_Binding_factory([Frozen] ServiceModelDiscoveryOptions options, ServiceModelDiscoveryService sut) { sut.Discover <ITestService>(); Mock.Get(options.DiscoveryBindingFactory as Func <BasicHttpBinding>).Verify(p => p(), Times.Once()); }
public void Discover_uses_DiscoveryClientWrapper_to_find_valid_endpoints([Frozen] IServiceModelDiscoveryClientWrapper discoveryClient, ServiceModelDiscoveryService sut) { sut.Discover <ITestService>(); Mock.Get(discoveryClient).Verify(p => p.FindEndpoints(It.IsAny <DiscoveryEndpoint>(), It.IsAny <FindCriteria>())); }