Exemplo n.º 1
0
 public SellingTests()
 {
     builder = new StudentOfficeBuilder();
     sut     = builder.office;
     john    = builder.john; jane = builder.jane;
     sut.SellProduct(john, new Order(ProductGenerator.chips, 5));
     sut.SellProduct(jane, new Order(ProductGenerator.chips, 3));
 }
Exemplo n.º 2
0
 public MealPlanTests()
 {
     builder          = new StudentOfficeBuilder();
     sut              = new MealPlanDirector();
     preparator       = new MealPlanConcreteBuilder();
     veggiepreparator = new MealPlanConcreteBuilderVeggie();
     sut.Assembler    = preparator;
     john             = builder.john;
 }
Exemplo n.º 3
0
 public StubStock()
 {
     builder      = new StudentOfficeBuilder();
     StockProduct = new Dictionary <Product, int>
     {
         { ProductGenerator.chips, 15 },
         { ProductGenerator.water, 15 },
         { ProductGenerator.beer, 15 }
     };
 }
Exemplo n.º 4
0
 public StockTests()
 {
     builder = new StudentOfficeBuilder();
     sut     = (IStockData)builder.office.Stock;
     john    = builder.john;
 }
Exemplo n.º 5
0
 public StudentOfficeTests()
 {
     builder = new StudentOfficeBuilder();
     SUT     = builder.office;
     john    = Clients.John(); jane = Clients.Jane();
 }
Exemplo n.º 6
0
 public ConcreteVisitorTests()
 {
     builder = new StudentOfficeBuilder();
     visitor = new BestProductVisitor();
 }
Exemplo n.º 7
0
 public CommercialTests()
 {
     builder = new StudentOfficeBuilder();
     office  = builder.office;
     water   = ProductGenerator.water; chips = ProductGenerator.chips; beer = ProductGenerator.beer;
 }