Exemplo n.º 1
0
 public ShoppingBasketTests()
 {
     _nonRoaldDahlBookSort       = new NonRoaldDahlBookSort();
     _roaldDahlbookSort          = new RoaldDahlBookSort();
     _nonRoaldDahlPriceGenerator = new NonRoaldDahlPriceGenerator();
     _roaldDahlPriceGenerator    = new RoaldDahlPriceGenerator();
 }
Exemplo n.º 2
0
 public ShoppingBasket(List <Book> books,
                       IRoaldDahlBookSort roaldDahlBookSort,
                       INonRoaldDahlBookSort nonRoaldDahlBookSort,
                       IRoaldDahlPriceGenerator roaldDahlPriceGenerator,
                       INonRoaldDahlPriceGenerator nonRoaldDahlPriceGenerator)
 {
     BooksInBasket               = books;
     _roaldDahlBookSort          = roaldDahlBookSort;
     _nonRoaldDahlBookSort       = nonRoaldDahlBookSort;
     _roaldDahlPriceGenerator    = roaldDahlPriceGenerator;
     _nonRoaldDahlPriceGenerator = nonRoaldDahlPriceGenerator;
 }