Esempio n. 1
0
        public void CheckHAOffNoPool()
        {
            var host = GetHostLiveness(GetMockConnectionWithCache(), true, false, true);
            //Execute the check
            var check   = new HAOffCheck(host);
            var problem = check.RunCheck();

            Assert.IsNull(problem);
        }
Esempio n. 2
0
        public void CheckHAOff()
        {
            var host = GetHostHA(false);

            //Execute the check
            var check   = new HAOffCheck(host);
            var problem = check.RunCheck();

            Assert.IsNull(problem);
        }
Esempio n. 3
0
        public void CheckHAON()
        {
            var host = GetHostHA(true);

            //Execute the check
            var check   = new HAOffCheck(host);
            var problem = check.RunCheck();

            Assert.IsNotNull(problem);
            Assert.AreEqual(typeof(HAEnabledProblem), problem.GetType());
        }