public void CreateNewUserTest2() { RentItClient target = new RentItClient(); Account newAccount = new Account { UserName = "******", FullName = "Test Testesen", Email = "*****@*****.**", HashedPassword = "******" }; target.CreateNewUser(newAccount); }
public void CreateNewUserTest() { RentItClient target = new RentItClient(); Account newAccount = new Account { UserName = "******", FullName = "Unit Testesen1", Email = "*****@*****.**", HashedPassword = "******" }; bool expected = true; bool actual; actual = target.CreateNewUser(newAccount); Assert.AreEqual(expected, actual); CleanupCreateUser(newAccount.UserName); }
public void DeleteAccountTest() { var db = new RentItTestDatabase.RentItDatabaseDataContext(); RentItClient target = new RentItClient(); Account delAccount = new Account { UserName = "******", FullName = "Unit Testesen1", Email = "*****@*****.**", HashedPassword = "******" }; target.CreateNewUser(delAccount); AccountCredentials credentials = new AccountCredentials { UserName = "******", HashedPassword = "******" }; bool expected = true; bool actual; actual = target.DeleteAccount(credentials); Assert.AreEqual(expected, actual); CleanupCreateUser(credentials.UserName); }