예제 #1
0
        public void TestMockSignonSetup_BadData()
        {
            IRpcBroker broker = MockRpcBrokerFactory.GetXusSignonSetupBroker(false);

            XusSignonSetupCommand testCommand = new XusSignonSetupCommand(broker);

            RpcResponse response = testCommand.Execute();

            // *** Check results ***
            Assert.IsNotNull(response);
            Assert.AreEqual(RpcResponseStatus.Fail, response.Status);
        }
예제 #2
0
        public void TestMockSignonSetup_GoodData()
        {
            IRpcBroker broker = MockRpcBrokerFactory.GetXusSignonSetupBroker(true);

            XusSignonSetupCommand testCommand = new XusSignonSetupCommand(broker);

            RpcResponse response = testCommand.Execute();

            // *** Check results ***
            Assert.IsNotNull(response);
            Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            Assert.IsFalse(string.IsNullOrWhiteSpace(testCommand.SignonSetup.DomainName));
            Assert.IsFalse(string.IsNullOrWhiteSpace(testCommand.SignonSetup.Port));
            Assert.IsFalse(string.IsNullOrWhiteSpace(testCommand.SignonSetup.ServerName));
            Assert.IsFalse(string.IsNullOrWhiteSpace(testCommand.SignonSetup.UCI));
            Assert.IsFalse(string.IsNullOrWhiteSpace(testCommand.SignonSetup.Volume));
        }