Exemple #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);
        }
Exemple #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));
        }