Beispiel #1
0
        public void DockingStation_ReportBroken_ShouldChangeTheStateOfBikeWorkingToFalse()
        {
            var bike           = new Bike();
            var dockingStation = new DockingStation(1);

            dockingStation.DockBike(bike, 0);

            Assert.True(bike.Working);

            bike.Working.Should().Equals(true);

            dockingStation.ReportBroken(0);

            Assert.False(bike.Working);

            bike.Working.Should().Equals(false);
        }