コード例 #1
0
        private void CompareUserGroup(User one, User two)
        {
            Assert.IsTrue(one.Dateline.Equals(two.Dateline), "Dateline is not the same");
            Assert.AreEqual(one.Designation, two.Designation);
            Assert.AreEqual(one.EmailAddresses, two.EmailAddresses);
            Assert.AreEqual(one.EnableDst, two.EnableDst);
            Assert.AreEqual(one.Expiry, two.Expiry);
            Assert.AreEqual(one.FullName, two.FullName);
            Assert.AreEqual(one.GroupId, two.GroupId);
            Assert.AreEqual(one.Id, two.Id);
            Assert.AreEqual(one.IsEnabled, two.IsEnabled);
            Assert.AreEqual(one.LastVisit, two.LastVisit);

            if (one.OrganizationId != null && one.OrganizationId.HasValue)
            {
                Assert.AreEqual(one.OrganizationId.Value, two.OrganizationId.Value);
            }

            Assert.AreEqual(one.Phone, two.Phone);
            Assert.AreEqual(one.Role, two.Role);
            Assert.AreEqual(one.Salutation, two.Salutation);
            Assert.AreEqual(one.SlaPlanExpiry, two.SlaPlanExpiry);
            Assert.AreEqual(one.SlaPlanId, two.SlaPlanId);
            Assert.AreEqual(one.TimeZone, two.TimeZone);

            AssertObjectXmlEqual<User>(one, two);
        }
コード例 #2
0
		public static UserRequest FromResponseData(User responseData)
		{
			return UserRequest.FromResponseType<User, UserRequest>(responseData);
		}