public void EndRentOfBikeTest()
        {
            var bike       = new Bike("1", 0.2M);
            var rentedBike = new RentedBike(bike, DateTime.Now);

            _rentedBikeService.StartRentOfBike(bike);

            _rentedBikeService.EndRentOfBike(rentedBike.Bike.Id);

            Assert.IsFalse(bike.IsRented);
        }
Exemple #2
0
        public decimal EndRent(string id)
        {
            var income = _rentedBikeService.EndRentOfBike(id);

            return(income);
        }