public void Setup() { IOC.IntegrationTest(); _orderInfo = DefaultFactoriesAndSharedFunctionality.CreateIncompleteOrderInfo(DefaultFactoriesAndSharedFunctionality.CreateProductInfo(1000, 1)); _orderDiscount = DefaultFactoriesAndSharedFunctionality.CreateDefaultOrderDiscountWithAmount(195, DiscountOrderCondition.None, 0); }
public void Setup() { IOC.UnitTest(); IOC.SettingsService.InclVat(); _discountCalculationService = IOC.DiscountCalculationService.Actual().Resolve(); _discount = DefaultFactoriesAndSharedFunctionality.CreateDefaultOrderDiscountWithPercentage(50); _discount.MemberGroups = new List<string> {"testGroup"}; _orderInfo = DefaultFactoriesAndSharedFunctionality.CreateOrderInfo( DefaultFactoriesAndSharedFunctionality.CreateProductInfo(1000, 1)); DefaultFactoriesAndSharedFunctionality.SetDiscountsOnOrderInfo(_orderInfo, _discount); _mock = IOC.AuthenticationProvider.SetupNewMock(); }