Ejemplo n.º 1
0
        public void CreatePromotionWithArrayOfBikes()
        {
            Promotion   promotion = new Promotion();
            List <Bike> bikes     = new List <Bike>();

            bikes.Add(new Bike("H"));
            bikes.Add(new Bike("D"));
            bikes.Add(new Bike("W"));

            promotion.AddBikesArray(bikes);

            Assert.AreEqual(promotion.GetPrice(), 59, 5);
        }