public bool IsItemLevelDiscountEnabledInStore() { var discountConfig = GetDiscountConfigDetails(); if (discountConfig.ItemDiscount.enabled) { return true; } return false; }
[Theory] [InlineData(true)] [InlineData(false)] public void ItemLevelDiscountEnabledInStoreDb(bool value) { //Arrange var discountConfig = new DiscountConfig { ItemDiscount = new ItemDiscount { enabled = value } }; _discountServiceMock.Setup(x => x.GetDiscountConfigDetails()).Returns(discountConfig); //Act //Assert }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)