public void Update_Returns_Null_When_WorkoutDoesNotExist()
            {
                // Arrange
                var expectedWorkout = new Workout {
                    Name = "Test workout 01"
                };

                // Act
                var result = RepositoryUnderTest.Update(expectedWorkout);

                // Assert
                Assert.Null(result);
            }
            public void Update_Updates_And_Returns_Workout()
            {
                // Arrange
                var expectedWorkout = new Workout {
                    Name = "Test workout 01"
                };

                TrainingPlanContextMock.Workouts.Add(expectedWorkout);
                TrainingPlanContextMock.SaveChanges();

                // Act
                var result = RepositoryUnderTest.Update(expectedWorkout);

                // Assert
                Assert.Same(expectedWorkout, result);
            }