public void Given_responsibility_can_be_deleted_When_CanBeDeleted_Then_return_true()
        {
            // Given
            _target = GetTarget();

            // When
            var result = _target.HasUndeletedTasks(_responsibilityId, _companyId);

            // Then
            Assert.IsTrue(result);
        }
        public void Given_responsibility_can_not_be_deleted_When_CanBeDeleted_Then_return_false()
        {
            // Given
            _responsibility
                .Setup(x => x.HasUndeletedTasks())
                .Returns(false);

            _target = GetTarget();

            // When
            var result = _target.HasUndeletedTasks(_responsibilityId, _companyId);

            // Then
            Assert.IsFalse(result);
        }
        public void Given_responsibility_not_found_When_CanBeDeleted_Then_log_and_throw_exception()
        {
            // Given
            _responsibilityRepo
                .Setup(x => x.GetByIdAndCompanyId(_responsibilityId, _companyId));

            _target = GetTarget();

            // When
            // Then
            var e = Assert.Throws<ResponsibilityNotFoundException>(() => _target.HasUndeletedTasks(_responsibilityId, _companyId));
            _log.Verify(x => x.Add(e));
        }