public void SetGetTitleTest() { // Arrange LoginInformation li = new LoginInformation(newTitle: "Random forum", newUrl: "https://somedomain.com", newEmail: "*****@*****.**", newUsername: "******", newPassword: "******"); string newTitle = "Not so random forum"; // Act li.UpdateTitle(newTitle); // Assert Assert.AreEqual(newTitle, li.GetTitle()); }
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), }); }