Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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));
        }