public void Given_task_SendTaskCompletedNotification_is_false_When_IsTaskCompletedNotificationRequired_Then_return_false() { // Given responsibilityTask = new ResponsibilityTask() { Responsibility = _responsibility.Object, SendTaskCompletedNotification = false }; // When var result = responsibilityTask.IsTaskCompletedNotificationRequired(); // Then Assert.IsFalse(result); }
public void Given_task_has_all_requirements_When_IsTaskCompletedNotificationRequired_Then_return_true() { // Given responsibilityTask = new ResponsibilityTask() { Responsibility = _responsibility.Object, SendTaskCompletedNotification = true }; // When var result = responsibilityTask.IsTaskCompletedNotificationRequired(); // Then Assert.IsTrue(result); }
public void Given_tasks_RiskAssessor_does_not_have_contact_details_is_false_When_IsTaskCompletedNotificationRequired_Then_return_false() { // Given _responsibilityOwner.Setup(x => x.GetEmail()); responsibilityTask = new ResponsibilityTask() { Responsibility = _responsibility.Object, SendTaskCompletedNotification = true }; // When var result = responsibilityTask.IsTaskCompletedNotificationRequired(); // Then Assert.IsFalse(result); }
public void Given_tasks_RiskAssessor_email_is_null_When_IsTaskCompletedNotificationRequired_Then_return_false() { // Given _responsibilityOwner.Setup(x => x.HasEmail).Returns(false); responsibilityTask = new ResponsibilityTask() { Responsibility = _responsibility.Object, SendTaskCompletedNotification = true }; // When var result = responsibilityTask.IsTaskCompletedNotificationRequired(); // Then Assert.IsFalse(result); }