public void Update_EmptyObject_Failure() { ClassOfService oCos = new ClassOfService(_mockServer); oCos.DisplayName = "New display name"; var res = oCos.Update(); Assert.IsFalse(res.Success, "Updating with empty object should fail"); }
public void Update_NoPendingChanges_Failure() { ClassOfService oCos = new ClassOfService(_mockServer); oCos.ClearPendingChanges(); var res = oCos.Update(); Assert.IsFalse(res.Success, "Updating with no pending changes should fail"); }
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); }