Exemplo n.º 1
0
        public void CreateManual()
        {
            var builder  = new ManualBuilder();
            var director = new Director(builder);

            director.MakeSportsCar();
            Manual manual = builder.GetManual();

            Assert.AreEqual(2, manual.Seats);
            Assert.IsTrue(manual.Engine is SportEngine);
            Assert.IsTrue(manual.TripComputer);
            Assert.IsTrue(manual.GPS);
        }
Exemplo n.º 2
0
 public void Reset() => _manual = new Manual();