public void TestSignNote() { using (RpcBroker broker = GetConnectedBroker()) { this.SignonToBroker(broker, 2); DsioCreateANoteCommand commandCreate = new DsioCreateANoteCommand(broker); commandCreate.AddCommandArguments(patDfn, "MCC DASHBOARD NOTE", "Note text for Friday", "test subject", new DsioNoteData(), ""); RpcResponse response = commandCreate.Execute(); Assert.AreEqual(RpcResponseStatus.Success, response.Status); DsioSignANoteCommand command = new DsioSignANoteCommand(broker); command.AddCommandArguments(commandCreate.Ien, "NUR1234"); response = command.Execute(); Assert.AreEqual(RpcResponseStatus.Success, response.Status); broker.Disconnect(); } }
public BrokerOperationResult SignNote(string ien, string sig) { BrokerOperationResult result = new BrokerOperationResult(); if (this.broker != null) { DsioSignANoteCommand command = new DsioSignANoteCommand(this.broker); command.AddCommandArguments(ien, sig); RpcResponse response = command.Execute(); result.Success = (response.Status == RpcResponseStatus.Success); result.Message = response.InformationalMessage; } return(result); }