Beispiel #1
0
        public static BikeRack WithBikes(params Bike[] bikes)
        {
            BikeRack bikeRack = new BikeRack();

            bikeRack.AvailableBikes.AddRange(bikes);
            return(bikeRack);
        }
Beispiel #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);
        }