Exemplo n.º 1
0
 public void CreateNewUserTest2()
 {
     RentItClient target = new RentItClient();
     Account newAccount = new Account {
         UserName = "******",
         FullName = "Test Testesen",
         Email = "*****@*****.**",
         HashedPassword = "******"
     };
     target.CreateNewUser(newAccount);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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);
        }