public void Should_BeAbleTo_ReportABikeAsBroken() { var dockingStation = new DockingStation(2); var bike = new Bike(); dockingStation.Dock(bike, 1); dockingStation.ReportBroken(1); Assert.That(bike.Working, Is.False); }
public void Should_BeAbleTo_RepairBike() { var maintenance = new Maintenance(); var dockingStation = new DockingStation(2); var bike = new Bike(); dockingStation.Dock(bike, 1); dockingStation.ReportBroken(1); maintenance.Repair(bike); Assert.That(bike.Working, Is.True); }