예제 #1
0
        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());
        }
예제 #2
0
        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>()));
        }