public void F_GetWorkoutTest() { int wId = wcRepository.GetAll().Where(x => x.workout_title.Equals("TestRepositoryWorkout", StringComparison.InvariantCultureIgnoreCase)) .FirstOrDefault().workout_id; var result = wcRepository.GetWorkout(wId); Assert.AreNotEqual(null, result); }
public workout_collection GetWorkout(int workoutId) { return(workoutCollectionRepository.GetWorkout(workoutId)); }