public void CreateByUriAsync_Should_InvokeConsumerGroupRepositoryCreateAsync_Once()
        {
            ConsumerGroup outParam;

            _consumerGroupService.CreateAsync(_consumerGroupDto);
            _mockConsumerGroupRepository.Verify(x => x.TryGetOne(_consumerGroupDto.Uri, out outParam), Times.Once);
            _mockConsumerGroupRepository.Verify(x => x.CreateAsync(It.IsAny <ConsumerGroup>()), Times.Once);
        }
        public async Task <IActionResult> Create([FromBody] ConsumerGroupDto dto)
        {
            var cgEntity = await _consumerGroupService.CreateAsync(dto);

            return(Created($"api/consumergroups", cgEntity));
        }