示例#1
0
        public async Task DeleteProductAsync(Guid id)
        {
            if (!ValidateId(id))
            {
                return;
            }

            await _domainService.DeleteProductAsync(id);
        }
示例#2
0
        public async Task DeleteProductAsync(Guid id)
        {
            if (!ValidateId(id))
            {
                return;
            }

            using (var uow = _unitOfWorkManager.Begin())
            {
                await _domainService.DeleteProductAsync(id);

                await uow.CompleteAsync().ForAwait();
            }
        }
示例#3
0
 public Task Should_Delete_Product()
 {
     // Act
     return(_domainService.DeleteProductAsync(ProductRepositoryMock.productGuid));
 }
示例#4
0
 public async Task Should_Delete_Product()
 {
     // Act
     await _domainService.DeleteProductAsync(ProductRepositoryMock.productGuid);
 }