Ejemplo n.º 1
0
        public TestingClientService GetTestingClientServiceWithoutSsl()
        {
            var maxReceiveMessageLengthOption = new ChannelOption(ChannelOptions.MaxReceiveMessageLength, int.MaxValue);
            var maxSendMessageLengthOption    = new ChannelOption(ChannelOptions.MaxSendMessageLength, int.MaxValue);

            var channel = new Channel(
                Defines.PcName,
                Defines.Port,
                ChannelCredentials.Insecure,
                new[] { maxReceiveMessageLengthOption, maxSendMessageLengthOption });
            var client = new TestingClientService(new Tester.TesterClient(channel), channel);

            return(client);
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            var factory = new ClientServicesFactory(new CredProvider());

            _clientService = factory.GetTestingClientServiceWithoutSsl();
        }