public void TestMockIntroMsg_BadData() { IRpcBroker broker = MockRpcBrokerFactory.GetXusIntroMsgBroker(false); XusIntroMsgCommand testCommand = new XusIntroMsgCommand(broker); RpcResponse response = testCommand.Execute(); // *** Check results *** Assert.IsNotNull(response); Assert.AreEqual(RpcResponseStatus.Fail, response.Status); }
public void TestMockIntroMsg_GoodData() { IRpcBroker broker = MockRpcBrokerFactory.GetXusIntroMsgBroker(true); XusIntroMsgCommand testCommand = new XusIntroMsgCommand(broker); RpcResponse response = testCommand.Execute(); // *** Check results *** Assert.IsNotNull(response); Assert.AreEqual(RpcResponseStatus.Success, response.Status); Assert.IsFalse(string.IsNullOrWhiteSpace(response.Data)); }