Beispiel #1
0
        public void DeleteTest()
        {
            var user = usersAccess.FindByUsername("Radu1337");

            usersAccess.Delete(user.ID);
            var user2 = usersAccess.FindByUsername("Radu1337");

            #region Assert
            Assert.IsNull(user2);
            #endregion
        }
Beispiel #2
0
 public static int Delete(int id)
 {
     try
     {
         using (var access = new UsersAccess())
         {
             return(access.Delete(id));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void Delete(int id)
 {
     usersAccess.Delete(id);
 }