From 6b564917f6e846f80ee182effdf3c0b77e3b1ed0 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Tue, 15 Feb 2022 10:35:48 +0300 Subject: [PATCH] fixed ordering service tests compile errors --- .../Orders/OrderApplication_Tests.cs | 2 +- .../EntityFrameworkCore/Orders/OrderRepository_Tests.cs | 2 +- .../OrderingServiceTestDataSeedContributor.cs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/ordering/test/EShopOnAbp.OrderingService.Application.Tests/Orders/OrderApplication_Tests.cs b/services/ordering/test/EShopOnAbp.OrderingService.Application.Tests/Orders/OrderApplication_Tests.cs index 79d35857..247737af 100644 --- a/services/ordering/test/EShopOnAbp.OrderingService.Application.Tests/Orders/OrderApplication_Tests.cs +++ b/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", diff --git a/services/ordering/test/EShopOnAbp.OrderingService.EntityFrameworkCore.Tests/EntityFrameworkCore/Orders/OrderRepository_Tests.cs b/services/ordering/test/EShopOnAbp.OrderingService.EntityFrameworkCore.Tests/EntityFrameworkCore/Orders/OrderRepository_Tests.cs index dd60c26f..580b80e4 100644 --- a/services/ordering/test/EShopOnAbp.OrderingService.EntityFrameworkCore.Tests/EntityFrameworkCore/Orders/OrderRepository_Tests.cs +++ b/services/ordering/test/EShopOnAbp.OrderingService.EntityFrameworkCore.Tests/EntityFrameworkCore/Orders/OrderRepository_Tests.cs @@ -54,7 +54,7 @@ public class OrderRepository_Tests : SampleRepository_Tests(); 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", diff --git a/services/ordering/test/EShopOnAbp.OrderingService.TestBase/OrderingServiceTestDataSeedContributor.cs b/services/ordering/test/EShopOnAbp.OrderingService.TestBase/OrderingServiceTestDataSeedContributor.cs index 4b2e3aa3..d45e0b19 100644 --- a/services/ordering/test/EShopOnAbp.OrderingService.TestBase/OrderingServiceTestDataSeedContributor.cs +++ b/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,