public workout_collection UpdateWorkout(workout_collection wc)
        {
            var res = workoutCollectionRepository.UpdateWorkout(wc);

            unitOfWork.Commit();
            return(res);
        }
        public void G_UpdateWorkoutTest()
        {
            workout_collection wc = new workout_collection();
            var workout           = wcRepository.GetAll().Where(x => x.workout_title.Equals("TestRepositoryWorkout", StringComparison.InvariantCultureIgnoreCase))
                                    .FirstOrDefault();

            if (workout != null)
            {
                workout.workout_note = "TestRepositoryNote1";
                wc = wcRepository.UpdateWorkout(workout);
                _context.SaveChanges();
                Assert.AreNotEqual("TestRepositoryNote", wc.workout_note);
            }
        }