Ejemplo n.º 1
0
        public static BikeRack WithBikes(params Bike[] bikes)
        {
            BikeRack bikeRack = new BikeRack();

            bikeRack.AvailableBikes.AddRange(bikes);
            return(bikeRack);
        }
Ejemplo n.º 2
0
        public static BikeRack WithAvailableBikes(int availableBikes)
        {
            BikeRack bikeRack = new BikeRack();

            for (int i = 0; i < availableBikes; i++)
            {
                bikeRack.AvailableBikes.Add(DefaultBike());
            }
            return(bikeRack);
        }