コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }