Exemplo n.º 1
0
        public async Task DeleteProductAsync(Guid id)
        {
            if (!ValidateId(id))
            {
                return;
            }

            await _domainService.DeleteProductAsync(id);
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 public Task Should_Delete_Product()
 {
     // Act
     return(_domainService.DeleteProductAsync(ProductRepositoryMock.productGuid));
 }
Exemplo n.º 4
0
 public async Task Should_Delete_Product()
 {
     // Act
     await _domainService.DeleteProductAsync(ProductRepositoryMock.productGuid);
 }