public void SetGetEmailTest() { // Arrange LoginInformation li = new LoginInformation(newTitle: "Random forum", newUrl: "https://somedomain.com", newEmail: "*****@*****.**", newUsername: "******", newPassword: "******"); string newEmail = "*****@*****.**"; // Act li.UpdateEmail(newEmail); // Assert Assert.AreEqual(newEmail, li.GetEmail()); }
public static LoginSimplified TurnIntoEditable(LoginInformation loginInformation, int zeroBasedIndexNumber) { return(new LoginSimplified() { zeroBasedIndexNumber = zeroBasedIndexNumber, IsSecure = false, Title = loginInformation.GetTitle(), URL = loginInformation.GetURL(), Email = loginInformation.GetEmail(), Username = loginInformation.GetUsername(), Password = loginInformation.GetPassword(), Notes = loginInformation.GetNotes(), Icon = loginInformation.GetIcon(), Category = loginInformation.GetCategory(), Tags = loginInformation.GetTags(), CreationTime = loginInformation.GetCreationTime().ToString("s", System.Globalization.CultureInfo.InvariantCulture), ModificationTime = loginInformation.GetModificationTime().ToString("s", System.Globalization.CultureInfo.InvariantCulture), }); }