예제 #1
0
        public void Normal_Billing_Strategy_Returns_Raw_Price()
        {
            _billingStrategy = new NormalBillingStrategy();
            var result = _billingStrategy.Calculate(10);

            Assert.True(result.Equals(10));
        }
예제 #2
0
        public void HappyHour_Billing_Strategy_Returns_Discount_Price()
        {
            _billingStrategy = new HappyHourBillingStrategy();
            var result = _billingStrategy.Calculate(10);

            Assert.True(result.Equals(5));
        }