public void UpdateBiography()
 {
     // Arrange
     UserProfileService service = new UserProfileService();
     // Act
     var item = service.Find(1);
     // Assert
     Assert.IsNotNull(item);
     // Act
     var biography = item.Biography;
     item.Biography = String.Format("UPDATE BIOGRAPHY TEST");
     var newBiography = item.Biography;
     service.Update(item);
     var item2 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item2.Biography, newBiography);
     item2.Biography = biography;
     service.Update(item2);
     var item3 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item3.Biography, biography);
 }
 public void FindWithErrorID()
 {
     // Arrange
     UserProfileService service = new UserProfileService();
     // Act
     var item = service.Find(-1);
     // Assert
     Assert.IsNull(item);
 }
 public void FindTest()
 {
     // Arrange
     UserProfileService service = new UserProfileService();
     // Act
     var item = service.Find(1);
     // Assert
     Assert.IsNotNull(item);
     // Assert
     Assert.AreEqual(item.UserId, 1);
 }
 public void UpdateLastName()
 {
     // Arrange
     UserProfileService service = new UserProfileService();
     // Act
     var item = service.Find(1);
     // Assert
     Assert.IsNotNull(item);
     // Act
     var lastName = item.LastName;
     item.LastName = String.Format("UPDATE LAST NAME TEST");
     var newLastName = item.LastName;
     service.Update(item);
     var item2 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item2.LastName, newLastName);
     item2.LastName = lastName;
     service.Update(item2);
     var item3 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item3.LastName, lastName);
 }
 public void UpdateEmailAddressName()
 {
     // Arrange
     UserProfileService service = new UserProfileService();
     // Act
     var item = service.Find(1);
     // Assert
     Assert.IsNotNull(item);
     // Act
     var emailAddress = item.EmailAddress;
     item.EmailAddress = String.Format("UPDATE EmailAddress TEST");
     var newEmailAddress = item.EmailAddress;
     service.Update(item);
     var item2 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item2.EmailAddress, newEmailAddress);
     item2.EmailAddress = emailAddress;
     service.Update(item2);
     var item3 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item3.EmailAddress, emailAddress);
 }
 public void UpdateDisplayName()
 {
     // Arrange
     UserProfileService service = new UserProfileService();
     // Act
     var item = service.Find(1);
     // Assert
     Assert.IsNotNull(item);
     // Act
     var displayName = item.DisplayName;
     item.DisplayName = String.Format("UPDATE DISPLAY NAME TEST");
     var newDisplayName = item.DisplayName;
     service.Update(item);
     var item2 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item2.DisplayName, newDisplayName);
     item2.DisplayName = displayName;
     service.Update(item2);
     var item3 = service.Find(1);
     // Assert
     Assert.IsNotNull(item2);
     // Assert
     Assert.AreEqual(item3.DisplayName, displayName);
 }