Ejemplo n.º 1
0
        public DummyGrpcServiceTest()
        {
            correlationId = IdGenerator.NextLong();

            var config = ConfigParams.FromTuples(
                "connection.protocol", "http",
                "connection.host", "localhost",
                "connection.port", 3000
                );

            client = new DummyGrpcClient();
            client.Configure(config);

            service = new DummyGrpcService();
            service.Configure(config);

            var references = References.FromTuples(
                new Descriptor("pip-services3-dummies", "controller", "default", "default", "1.0"), new DummyController()
                );

            service.SetReferences(references);
            service.OpenAsync(null).Wait();

            client.OpenAsync(null).Wait();
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            var settings = new AppSettings {
                ServerUri = string.Empty
            };

            this.client = new DummyGrpcClient(Options.Create(settings));
        }