public IActionResult Delete([FromBody] ConsumerGroupDto dto) { _consumerGroupService.Delete(dto); return(Ok($"Consumer Group with URI {dto.Uri} has been deleted")); }
public void DeleteByUri_Should_ThrowException_IfArgumentIsNull() { Assert.Throws <ArgumentNullException>(() => _consumerGroupService.Delete(null)); _mockConsumerGroupRepository.Verify(x => x.Delete(It.IsAny <ConsumerGroup>()), Times.Never); }