public static BikeRack WithBikes(params Bike[] bikes) { BikeRack bikeRack = new BikeRack(); bikeRack.AvailableBikes.AddRange(bikes); return(bikeRack); }
public static BikeRack WithAvailableBikes(int availableBikes) { BikeRack bikeRack = new BikeRack(); for (int i = 0; i < availableBikes; i++) { bikeRack.AvailableBikes.Add(DefaultBike()); } return(bikeRack); }