Browse Source

fixed ordering service tests compile errors

ipaddr
Galip Tolga Erdem 5 years ago
parent
commit
6b564917f6
  1. 2
      services/ordering/test/EShopOnAbp.OrderingService.Application.Tests/Orders/OrderApplication_Tests.cs
  2. 2
      services/ordering/test/EShopOnAbp.OrderingService.EntityFrameworkCore.Tests/EntityFrameworkCore/Orders/OrderRepository_Tests.cs
  3. 8
      services/ordering/test/EShopOnAbp.OrderingService.TestBase/OrderingServiceTestDataSeedContributor.cs

2
services/ordering/test/EShopOnAbp.OrderingService.Application.Tests/Orders/OrderApplication_Tests.cs

@ -45,7 +45,7 @@ public class OrderApplication_Tests:OrderingServiceApplicationTestBase
var placedOrder = await _orderAppService.CreateAsync(new OrderCreateDto()
{
PaymentMethod = 1,
PaymentMethod = "paypal",
Address = new OrderAddressDto()
{
City = "Test City", Country = "Test Country", Description = "No Description", Street = "Test Street",

2
services/ordering/test/EShopOnAbp.OrderingService.EntityFrameworkCore.Tests/EntityFrameworkCore/Orders/OrderRepository_Tests.cs

@ -54,7 +54,7 @@ public class OrderRepository_Tests : SampleRepository_Tests<OrderingServiceEntit
units)>();
orderItems.Add((Guid.NewGuid(), "Test product", "Code:001", 15, 0, "", 1));
var createdOrder = await _orderManager.CreateOrderAsync(
1,
"paypal",
Guid.Parse("11CA0F6D-208E-441A-9F9B-3611C96E4383"),
"gterdem",
"gterdem@volosoft.com",

8
services/ordering/test/EShopOnAbp.OrderingService.TestBase/OrderingServiceTestDataSeedContributor.cs

@ -30,7 +30,7 @@ namespace EShopOnAbp.OrderingService
private async Task SeedTestOrdersAsync()
{
await _orderManager.CreateOrderAsync(
1,
"paypal",
_testData.CurrentUserId,
_testData.CurrentUserName,
_testData.CurrentUserEmail,
@ -42,7 +42,7 @@ namespace EShopOnAbp.OrderingService
);
await _orderManager.CreateOrderAsync(
1, _testData.CurrentUserId, _testData.CurrentUserName, _testData.CurrentUserEmail,
"paypal", _testData.CurrentUserId, _testData.CurrentUserName, _testData.CurrentUserEmail,
_testProducts.GetRandomProducts(10),
_testData.Address.Street,
_testData.Address.City,
@ -51,7 +51,7 @@ namespace EShopOnAbp.OrderingService
);
await _orderManager.CreateOrderAsync(
1, _testData.CurrentUserId, _testData.CurrentUserName, _testData.CurrentUserEmail,
"paypal", _testData.CurrentUserId, _testData.CurrentUserName, _testData.CurrentUserEmail,
_testProducts.GetRandomProducts(2),
_testData.Address.Street,
_testData.Address.City,
@ -60,7 +60,7 @@ namespace EShopOnAbp.OrderingService
);
await _orderManager.CreateOrderAsync(
1, _testData.TestUserId, _testData.TestUserName, _testData.TestUserEmail,
"paypal", _testData.TestUserId, _testData.TestUserName, _testData.TestUserEmail,
_testProducts.GetRandomProducts(7),
_testData.Address.Street,
_testData.Address.City,

Loading…
Cancel
Save