コード例 #1
0
 public void SetUp()
 {
     Mc         = new MicroserviceCore();
     Mc.DoWork += McOnDoWork;
     Mc.AddLayer(new RabbitMqLayer(true, typeof(DefaultHandlerMock), typeof(RpcHandlerMock)));
     Mc.RegisterConfigurations += McOnRegisterConfigurations;
 }
コード例 #2
0
 public void SetUp()
 {
     ClientCache.Instance.Add <ProxiM.ProxiMClient>();
     Mc         = new MicroserviceCore();
     Mc.DoWork += McOnDoWork;
     Mc.AddLayer(new GrpcClientAccessLayer(ClientCache.Instance));
     Mc.RegisterConfigurations += McOnRegisterConfigurations;
 }
コード例 #3
0
        public void SetUp()
        {
            _publisherService = new MicroserviceCore(configFileName: "TestPostgresLayerConfiguration");
            _publisherService.AddLayer(new RabbitMqLayer(false, null));
            _publisherService.DoWork += PublisherServiceOnDoWork;
            _reciverService           = new MicroserviceCore(configFileName: "TestPostgresLayerConfiguration");
            _reciverService.AddLayer(new RabbitMqLayer(true, typeof(DefaultHandlerMock), typeof(RpcHandlerMock)));
            _reciverService.DoWork += ReciverServiceOnDoWork;
            _originalContract       = new ReqContract()
            {
                Id = 1, TestSrt = "TEST", ReqContractValue = new ReqContract()
                {
                    Id = 2, TestSrt = "TEST2"
                }
            };

            _rpcService = new MicroserviceCore(configFileName: "TestPostgresLayerConfiguration");
            _rpcService.AddLayer(new RabbitMqLayer(false));
            _rpcService.DoWork += RpcServiceOnDoWork;
        }