public void RuleApplicationService_Enable()
        {
            var rule = new RuleBuilder().Disable().Builder();

            _ruleRepository.Add(rule);
            _unitOfWork.Commit();

            _ruleApplicationService.Enable(rule.Id);

            var entity = _ruleRepository.GetById(rule.Id);

            entity.Active.Should().BeTrue();
        }
Beispiel #2
0
 public IActionResult Enable(Guid id)
 {
     _ruleApplicationService.Enable(id);
     return(Response());
 }