public void AcceptingVisitor() { office.SellProduct(john, new Order(ProductGenerator.chips, 5)); BestProductVisitor visitor = (BestProductVisitor)office.CreateVisitorProduct(); Assert.Single(visitor.ProductTransactions); }
public ConcreteVisitorTests() { builder = new StudentOfficeBuilder(); visitor = new BestProductVisitor(); }