public async Task DeleteCategoryAsync()
        {
            //Arrange
            var category          = CategoryDumbData.GetRandomEntity();
            var cancellationToken = new CancellationToken();

            _categoryRepository.Setup(x => x.Delete(It.IsAny <Category>()));
            _unitOfWork.Setup(x => x.SaveChangesAsync(cancellationToken)).Returns(Task.CompletedTask);

            // Act
            await _categoryService.DeleteCategoryAsync(category.Id, cancellationToken);

            // Assert
            _categoryRepository.Verify(x => x.Delete(It.IsAny <Category>()), Times.Once);
            _unitOfWork.Verify(x => x.SaveChangesAsync(cancellationToken), Times.Once);
        }
        public async Task GetCategoryByIdAsync()
        {
            //Arrange
            var category          = CategoryDumbData.GetRandomEntity();
            var expectedValue     = _mapper.Map <ReadCategoryModel>(category);
            var cancellationToken = new CancellationToken();

            _categoryRepository.Setup(x => x.GetByIdAsync(It.IsAny <Guid>(), cancellationToken)).Returns(Task.FromResult(category));

            // Act
            var response = await _categoryService.GetCategoryByIdAsync(category.Id, cancellationToken);

            // Assert
            _categoryRepository.Verify(x => x.GetByIdAsync(It.IsAny <Guid>(), cancellationToken), Times.Once);
            response.Should().BeEquivalentTo(expectedValue);
        }