Ejemplo n.º 1
0
        public void Build()
        {
            _builder.Initialize(_marshallerFactory.Object, _callOptionsFactory);

            var actual = _builder.Build(_callInvoker.Object);

            var mock = actual.ShouldBeOfType <ClientMock>();

            mock.CallInvoker.ShouldBe(_callInvoker.Object);
            mock.Contract.MarshallerFactory.ShouldBe(_marshallerFactory.Object);
            mock.DefaultCallOptionsFactory.ShouldBe(_callOptionsFactory);
        }