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