Esempio n. 1
0
        private void CompareStaffUsers(StaffUser one, StaffUser two)
        {
            Assert.AreEqual(one.Designation, two.Designation);
            Assert.AreEqual(one.Email, two.Email);
            Assert.AreEqual(one.EnableDst, two.EnableDst);
            Assert.AreEqual(one.FirstName, two.FirstName);
            Assert.AreEqual(one.FullName, two.FullName);
            Assert.AreEqual(one.Greeting, two.Greeting);
            Assert.AreEqual(one.GroupId, two.GroupId);
            Assert.AreEqual(one.Id, two.Id);
            Assert.AreEqual(one.IsEnabled, two.IsEnabled);
            Assert.AreEqual(one.LastName, two.LastName);
            Assert.AreEqual(one.MobileNumber, two.MobileNumber);
            //Can't test signature as it doesn't come back from the Api
            //Assert.AreEqual(one.Signature, two.Signature);
            Assert.AreEqual(one.TimeZone, two.TimeZone);
            Assert.AreEqual(one.UserName, two.UserName);

            AssertObjectXmlEqual<StaffUser>(one, two);
        }
 public static StaffUserRequest FromResponseData(StaffUser responseData) => FromResponseType <StaffUser, StaffUserRequest>(responseData);
		public static StaffUserRequest FromResponseData(StaffUser responseData)
		{
			return StaffUserRequest.FromResponseType<StaffUser, StaffUserRequest>(responseData);
		}
 public static StaffUserRequest FromResponseData(StaffUser responseData)
 {
     return(StaffUserRequest.FromResponseType <StaffUser, StaffUserRequest>(responseData));
 }