public void TestConsultDetail()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                OrqqcnDetailCommand command = new OrqqcnDetailCommand(broker);

                command.AddCommandArguments(TestConfiguration.ValidConsultIen);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
Exemplo n.º 2
0
        public void TestConsultDetail()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                // TODO: Get working with non-programmer
                this.SignonToBroker(broker, 2);

                OrqqcnDetailCommand command = new OrqqcnDetailCommand(broker);

                command.AddCommandArguments("554");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
Exemplo n.º 3
0
        public ConsultDetailResult GetDetail(string ien)
        {
            ConsultDetailResult result = new ConsultDetailResult();

            if (this.broker != null)
            {
                OrqqcnDetailCommand command = new OrqqcnDetailCommand(this.broker);

                command.AddCommandArguments(ien);

                RpcResponse response = command.Execute();

                result.SetResult(response.Status == RpcResponseStatus.Success, response.InformationalMessage);

                if (result.Success)
                {
                    result.ConsultDetail = command.ConsultDetail;
                }
            }

            return(result);
        }