public void Given_a_deleted_task_is_completed_When_IsDeleteEnabled_Is_Requested_Then_returns_false()
        {
            //Given
            var user = new Mock<IPrincipal>();
            user.Setup(x => x.IsInRole(It.IsAny<string>())).Returns(true);

            var taskViewModel = new TaskViewModel
            {
                TaskStatus = "Completed"
            };

            //When
            var result = taskViewModel.IsDeleteEnabled(user.Object);

            //Then
            Assert.IsFalse(result);
        }
        public void Given_a_risk_assessment_task_When_IsDeleteEnabled_Is_Requested_Then_returns_true()
        {
            //Given
            var user = new Mock<IPrincipal>();
            user.Setup(x => x.IsInRole(It.IsAny<string>())).Returns(true);

            var taskViewModel = new TaskViewModel()
            {

            };

            //When
            var result = taskViewModel.IsDeleteEnabled(user.Object);

            //Then
            Assert.IsTrue(result);
        }
        public void Given_a_user_without_permissions_When_IsDeleteEnabled_Is_Requested_Then_returns_false()
        {
            //Given
            var user = new Mock<IPrincipal>();
            user.Setup(x => x.IsInRole(It.IsAny<string>())).Returns(false);

            var taskViewModel = new TaskViewModel()
            {

            };

            //When
            var result = taskViewModel.IsDeleteEnabled(user.Object);

            //Then
            Assert.IsFalse(result);
        }