Skip to content

Commit 0e15740

Browse files
committed
Code polishing issues fixed
1 parent c3bdcb1 commit 0e15740

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/Libraries/Nop.Services/Installation/CodeFirstInstallationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9851,7 +9851,7 @@ protected virtual void InstallProducts(string defaultUserEmail)
98519851
new ProductCategory
98529852
{
98539853
Category = _categoryRepository.Table.Single(c => c.Name == "Jewelry"),
9854-
DisplayOrder =m 1,
9854+
DisplayOrder = 1,
98559855
}
98569856
}
98579857
};

src/Tests/Nop.Services.Tests/Discounts/DiscountServiceTests.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Nop.Core.Domain.Discounts;
99
using Nop.Core.Plugins;
1010
using Nop.Services.Catalog;
11-
using Nop.Services.Common;
1211
using Nop.Services.Discounts;
1312
using Nop.Services.Events;
1413
using Nop.Services.Localization;
@@ -25,12 +24,10 @@ public class DiscountServiceTests : ServiceTest
2524
private IRepository<DiscountRequirement> _discountRequirementRepo;
2625
private IRepository<DiscountUsageHistory> _discountUsageHistoryRepo;
2726
private IEventPublisher _eventPublisher;
28-
private IGenericAttributeService _genericAttributeService;
2927
private ILocalizationService _localizationService;
3028
private ICategoryService _categoryService;
3129
private IDiscountService _discountService;
3230
private IStoreContext _storeContext;
33-
private IWorkContext _workContext;
3431

3532
[SetUp]
3633
public new void SetUp()
@@ -67,20 +64,18 @@ public class DiscountServiceTests : ServiceTest
6764
_eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));
6865

6966
_storeContext = MockRepository.GenerateMock<IStoreContext>();
70-
_workContext = null;
7167

7268
var cacheManager = new NopNullCache();
7369
_discountRequirementRepo = MockRepository.GenerateMock<IRepository<DiscountRequirement>>();
7470
_discountRequirementRepo.Expect(x => x.Table).Return(new List<DiscountRequirement>().AsQueryable());
7571

7672
_discountUsageHistoryRepo = MockRepository.GenerateMock<IRepository<DiscountUsageHistory>>();
7773
var pluginFinder = new PluginFinder();
78-
_genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>();
7974
_localizationService = MockRepository.GenerateMock<ILocalizationService>();
8075
_categoryService = MockRepository.GenerateMock<ICategoryService>();
8176
_discountService = new DiscountService(cacheManager, _discountRepo, _discountRequirementRepo,
8277
_discountUsageHistoryRepo, _storeContext,
83-
_localizationService, _categoryService, pluginFinder, _eventPublisher, _workContext);
78+
_localizationService, _categoryService, pluginFinder, _eventPublisher);
8479
}
8580

8681
[Test]

0 commit comments

Comments
 (0)