|
|
|
@ -2,6 +2,7 @@ |
|
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
using Volo.Abp.Guids; |
|
|
|
using Volo.Abp.Threading; |
|
|
|
using Volo.Abp.Uow; |
|
|
|
|
|
|
|
namespace ProductManagement |
|
|
|
{ |
|
|
|
@ -23,7 +24,8 @@ namespace ProductManagement |
|
|
|
AsyncHelper.RunSync(BuildAsync); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task BuildAsync() |
|
|
|
[UnitOfWork] |
|
|
|
public virtual async Task BuildAsync() |
|
|
|
{ |
|
|
|
await _productManager.CreateAsync(_testData.ProductCode1, _testData.ProductName1, _testData.ProductPrice1, _testData.ProductStockCount1); |
|
|
|
await _productManager.CreateAsync(_testData.ProductCode2, _testData.ProductName2, _testData.ProductPrice2, _testData.ProductStockCount2); |
|
|
|
|