public void WorkoutSessionTestWorkoutSessionWithNullWorkout_Validate_Invalid()
        {
            //Arrange
            _entity = new WorkoutSession {
                Name = "Name", Workout = null
            };

            //Act
            var errorsList = new List <ValidationResult>(_entity.Validate(new ValidationContext(this)));

            //Assert
            Assert.IsTrue(errorsList.Count == 1);
        }
        public void WorkoutSessionTestWorkoutSessionWithExerciceWithDiffOrder_Validate_Valid()
        {
            //Arrange
            _entity = new WorkoutSession {
                Name = "Name", Workout = new Workout(), WorkoutSessionExercises = new List <WorkoutSessionExercise> {
                    new WorkoutSessionExercise {
                        Order = 1
                    }, new WorkoutSessionExercise {
                        Order = 2
                    }
                }
            };

            //Act
            var errorsList = new List <ValidationResult>(_entity.Validate(new ValidationContext(this)));

            //Assert
            Assert.IsTrue(errorsList.Count == 0);
        }