コード例 #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);
 }