コード例 #1
0
 public ShoppingBasketTests()
 {
     _nonRoaldDahlBookSort       = new NonRoaldDahlBookSort();
     _roaldDahlbookSort          = new RoaldDahlBookSort();
     _nonRoaldDahlPriceGenerator = new NonRoaldDahlPriceGenerator();
     _roaldDahlPriceGenerator    = new RoaldDahlPriceGenerator();
 }
コード例 #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;
 }