Ejemplo n.º 1
0
        public void RemoveRentedScooterTest()
        {
            IScooterService service = new ScooterService();

            service.AddScooter("scooter1", 0.2m);
            service.GetScooterById("scooter1").IsRented = true;
            Assert.ThrowsException <CantRemoveRentedScooterException>(() => service.RemoveScooter("scooter1"));
        }
Ejemplo n.º 2
0
        public void RemoveNotExistingScooterTest()
        {
            IScooterService service = new ScooterService();

            Assert.ThrowsException <CantRemoveException>(() => service.RemoveScooter("scooter1"));
        }