private void TestDivisionSet(bool goodData, RpcResponseStatus expectedResponse) { IRpcBroker broker = MockRpcBrokerFactory.GetXusDivisionSetBroker(goodData); XusDivisionSetCommand divCommand = new XusDivisionSetCommand(broker, ""); RpcResponse response = divCommand.Execute(); // *** Check results *** Assert.IsNotNull(response); Assert.AreEqual(expectedResponse, response.Status); }
public BrokerOperationResult Select(string divId) { BrokerOperationResult returnVal = new BrokerOperationResult(); if (this.broker != null) { XusDivisionSetCommand command = new XusDivisionSetCommand(this.broker, divId); command.Execute(); returnVal.SetResult((command.Response.Status == RpcResponseStatus.Success), ""); } return(returnVal); }