コード例 #1
0
        public PreConfiguredServerTests()
        {
            var testRunValues = new TestRunValues();

            _server = new Server
            {
                Services = { BindService(new DumbPipeServiceImplementation(new EchoValueService())) },
                Ports    = { new ServerPort(testRunValues.Host, testRunValues.Port, testRunValues.ServerCredentials) }
            };
            _channel = new Channel(testRunValues.HostAddress, testRunValues.ClientCredentials);
            _client  = new SampleServiceClient(_channel);
        }
コード例 #2
0
 public AddSimpleServiceImplementationTests()
 {
     _testRunValues = new TestRunValues();
     _channel       = new Channel(_testRunValues.HostAddress, _testRunValues.ClientCredentials);
     _client        = new SampleServiceClient(_channel);
 }