Ejemplo n.º 1
0
        public void RefetchClassOfServiceData_EmptyObject_Failure()
        {
            ClassOfService oCos = new ClassOfService(_mockServer);
            var            res  = oCos.RefetchClassOfServiceData();

            Assert.IsFalse(res.Success, "Refetching data on an empty class instance should fail");
        }
Ejemplo n.º 2
0
        public void Test_CosUpdateTests()
        {
            WebCallResult res = _tempCos.Update();

            Assert.IsFalse(res.Success, "Calling update to COS instance with no pending changes did not fail");

            _tempCos.CanRecordName    = true;
            _tempCos.MaxPrivateDlists = 92;
            res = _tempCos.Update();
            Assert.IsTrue(res.Success, "COS failed to update:" + res);

            _tempCos.FaxRestrictionObjectId = "bogus";
            res = _tempCos.Update();
            Assert.IsFalse(res.Success, "Setting COS fax restriction table to bogus value did not return an error");

            res = _tempCos.RefetchClassOfServiceData();
            Assert.IsTrue(res.Success, "Refetch of data for COS failed:" + res);
            Assert.IsTrue(_tempCos.MaxPrivateDlists == 92, "Max list value pulled on refetch does not matched what was set:" + res);
        }