public void Given_task_has_all_requirements_When_IsTaskCompletedNotificationRequired_Then_return_true()
        {
            // Given
            reviewTask = new RiskAssessmentReviewTask() { RiskAssessmentReview = _review.Object, SendTaskCompletedNotification = true };

            // When
            var result = reviewTask.IsTaskCompletedNotificationRequired();

            // Then
            Assert.IsTrue(result);
        }
        public void Given_task_SendTaskCompletedNotification_is_false_When_IsTaskCompletedNotificationRequired_Then_return_false()
        {
            // Given
            reviewTask = new RiskAssessmentReviewTask() { RiskAssessmentReview = _review.Object, SendTaskCompletedNotification = false };

            // When
            var result = reviewTask.IsTaskCompletedNotificationRequired();

            // Then
            Assert.IsFalse(result);
        }
        public void Given_tasks_RiskAssessor_does_not_have_contact_details_is_false_When_IsTaskCompletedNotificationRequired_Then_return_false()
        {
            // Given
            _riskAssessorEmployee.Setup(x => x.MainContactDetails);
            reviewTask = new RiskAssessmentReviewTask() { RiskAssessmentReview = _review.Object, SendTaskCompletedNotification = true };

            // When
            var result = reviewTask.IsTaskCompletedNotificationRequired();

            // Then
            Assert.IsFalse(result);
        }
        public void Given_tasks_RiskAssessor_email_is_empty_string_When_IsTaskCompletedNotificationRequired_Then_return_false()
        {
            // Given
            _riskAssessorEmployee.Setup(x => x.MainContactDetails.Email).Returns(string.Empty);
            reviewTask = new RiskAssessmentReviewTask() { RiskAssessmentReview = _review.Object, SendTaskCompletedNotification = true };

            // When
            var result = reviewTask.IsTaskCompletedNotificationRequired();

            // Then
            Assert.IsFalse(result);
        }