public void GetActiveSpecialPricingRules_MixedActiveInActiveSpecialPricingRules_ReturnsActiveOnlyList()
        {
            // Arrange
            var customerId = Guid.NewGuid();
            var mixedActiveInActiveSpecialPricingRules =
                new List <SPR>()
            {
                new SPRQuantityDiscount()
                {
                    CustomerId = customerId, IsActive = true
                },
                new SPRQuantityDiscount()
                {
                    CustomerId = customerId, IsActive = false
                },
                new SPRQuantityDiscount()
                {
                    CustomerId = customerId, IsActive = true
                }
            };

            var ipricingRulesServiceMock = new Mock <IPricingRulesRepository>();

            ipricingRulesServiceMock
            .Setup(m => m.GetSpecialPricingRules())
            .Returns(mixedActiveInActiveSpecialPricingRules);

            // Act
            var result = new PricingRulesService(ipricingRulesServiceMock.Object).GetActiveSpecialPricingRules(customerId);

            // Assert
            Assert.AreEqual(2, result.Count());
        }
        public void GetActiveSpecialPricingRules_EmptySpecialPricingRules_ReturnsEmptyList()
        {
            // Arrange
            var noSpecialPricingRule = new List <SPR>();

            var PricingRulesRepository = new Mock <IPricingRulesRepository>();

            PricingRulesRepository
            .Setup(m => m.GetSpecialPricingRules())
            .Returns(noSpecialPricingRule);

            // Act
            var result = new PricingRulesService(PricingRulesRepository.Object).GetActiveSpecialPricingRules(Guid.NewGuid());

            // Assert
            Assert.AreEqual(0, result.Count());
        }