public void Given_task_has_all_requirements_When_IsTaskCompletedNotificationRequired_Then_return_true()
        {
            // Given
            fcmTask = new TestableFCMTask(_riskAssessment.Object) { SendTaskCompletedNotification = true };

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

            // Then
            Assert.IsTrue(result);
        }
        public void Given_task_SendTaskCompletedNotification_is_false_When_IsTaskCompletedNotificationRequired_Then_return_false()
        {
            // Given
            fcmTask = new TestableFCMTask(_riskAssessment.Object) { SendTaskCompletedNotification = false };

            // When
            var result = fcmTask.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);
            fcmTask = new TestableFCMTask(_riskAssessment.Object) { SendTaskCompletedNotification = true };

            // When
            var result = fcmTask.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);
            fcmTask = new TestableFCMTask(_riskAssessment.Object) { SendTaskCompletedNotification = true };

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

            // Then
            Assert.IsFalse(result);
        }