public async Task DeleteProductAsync(Guid id) { if (!ValidateId(id)) { return; } await _domainService.DeleteProductAsync(id); }
public async Task DeleteProductAsync(Guid id) { if (!ValidateId(id)) { return; } using (var uow = _unitOfWorkManager.Begin()) { await _domainService.DeleteProductAsync(id); await uow.CompleteAsync().ForAwait(); } }
public Task Should_Delete_Product() { // Act return(_domainService.DeleteProductAsync(ProductRepositoryMock.productGuid)); }
public async Task Should_Delete_Product() { // Act await _domainService.DeleteProductAsync(ProductRepositoryMock.productGuid); }