public void OneTimeSetUp()
 {
     _harryPotterBooksPriceCalculator = new HarryPotterBooksPriceCalculator(new List <IDiscountRule>());
     _orderedBooks =
         _harryPotterBooksPriceCalculator.OrderBooksToPrice(new List <Book>
     {
         new Book("Harry Potter", 1, 8),
         new Book("Harry Potter", 2, 8),
         new Book("Harry Potter", 3, 8),
         new Book("Harry Potter", 2, 8),
         new Book("Harry Potter", 1, 8),
         new Book("Harry Potter", 2, 8)
     });
 }
        public void OneTimeSetUp()
        {
            var discountRules = new List <IDiscountRule>
            {
                new FiveBooksDiscount(),
                new FourBooksDiscount(),
                new ThreeBooksDiscount(),
                new TwoBooksDiscount()
            };

            _harryPotterBooksPriceCalculator = new HarryPotterBooksPriceCalculator(discountRules);
            _orderedBooks = new List <Book>
            {
                new Book("Harry Potter", 1, 8),
                new Book("Harry Potter", 2, 8),
                new Book("Harry Potter", 3, 8)
            };
            _result = _harryPotterBooksPriceCalculator.GetPriceOfGroupedBooks(_orderedBooks);
        }