public static void CleanTests()
        {
            IUserCollectionDAL userCollectionDAL = UserCollectionDALFactory.GetUserCollectionDAL();
            ITrainingDAL       trainingDAL       = TrainingDALFactory.GetTrainingDAL();

            UserDTO strengthAccount = userCollectionDAL.GetUser("TempAccountWeightTraining");
            UserDTO cardioAccount   = userCollectionDAL.GetUser("TempAccountCardioTraining");

            Guid strengthtrainingID = trainingDAL.GetUserTrainings(strengthAccount.UserID.ToString())[0].TrainingID;
            Guid cardiotrainingID   = trainingDAL.GetUserTrainings(cardioAccount.UserID.ToString())[0].TrainingID;

            trainingDAL.DeleteWeightTraining(strengthtrainingID.ToString());
            trainingDAL.DeleteCardioTraining(cardiotrainingID.ToString());

            userCollectionDAL.DeleteUser(strengthAccount.Name.ToString());
            userCollectionDAL.DeleteUser(cardioAccount.Name.ToString());
        }
        public void DeleteUser(string userID)
        {
            IUserCollectionDAL dal = UserCollectionDALFactory.GetUserCollectionDAL();

            dal.DeleteUser(userID);
        }
Пример #3
0
 public void DeleteUser(int Id)
 {
     userCollectionDAL.DeleteUser(Id);
 }