Example #1
0
        public void Create_uses_BindingFactory([Frozen] Func <NetTcpBinding> bindingFactory, BindingFactoryCustomization sut)
        {
            _ = sut.Create();

            Mock.Get(bindingFactory).Verify(p => p(), Times.Once());
        }
        public void BindingFactory_is_used([Frozen] Func <Binding> bindingFactory, BindingFactoryCustomization sut)
        {
            _ = sut.Create();

            Mock.Get(bindingFactory as Func <BasicHttpBinding>).Verify(p => p(), Times.Once);
        }