public decimal CalculatePrice(List <Reservation> reservations) { return((1 - _discountRateProvider.GetDiscountRateForCurrentUser()) * reservations.Sum(o => o.Product.Price)); CachingReservationService testReservationService = new CachingReservationService(null, new TimeSpan()); testReservationService.MyDelegateEvent += DelegateImpl; }
public decimal CalculatePrice(List<Reservation> reservations) { return (1 - _discountRateProvider.GetDiscountRateForCurrentUser()) * reservations.Sum(o => o.Product.Price); CachingReservationService testReservationService = new CachingReservationService(null, new TimeSpan()); testReservationService.MyDelegateEvent += DelegateImpl; }