Exemple #1
0
        public void Should_Not_Release_ParkingSpace_And_Return_Unavailable()
        {
            var parkingSpace = new ParkingSpace(ParkingSpaceType.Car);

            parkingSpace.Occupy(2);

            Assert.False(parkingSpace.IsAvailable());
        }
Exemple #2
0
        public void Should_Occupy_ParkingSpace_And_Then_Be_Not_Available()
        {
            var parkingSpace = new ParkingSpace(ParkingSpaceType.Car);

            parkingSpace.Occupy(2);

            Assert.False(parkingSpace.IsAvailable());
        }
Exemple #3
0
        public void Should_Release_ParkingSpace_And_Then_Be_Available()
        {
            var parkingSpace = new ParkingSpace(ParkingSpaceType.Car);

            parkingSpace.Occupy(2);
            parkingSpace.Release();

            Assert.True(parkingSpace.IsAvailable());
        }
Exemple #4
0
        public void Should_Not_Occupy_ParkingSpace_And_Return_Available()
        {
            var parkingSpace = new ParkingSpace(ParkingSpaceType.Car);

            Assert.True(parkingSpace.IsAvailable());
        }