Example #1
0
        public override double MakeLocalCall(int durationInMinutes, DateTime dateCalled)
        {
            var helper = new Helpers.CallHelper();

            if (durationInMinutes > 0)
            {
                if (helper.IsPrimeTime(dateCalled))
                {
                    return(helper.GetCallCost(CallType.LocalPrime, durationInMinutes));
                }

                return(helper.GetCallCost(CallType.Local, durationInMinutes));
            }

            return(helper.GetCallCost(CallType.Local, durationInMinutes));
        }
Example #2
0
        public override double MakeExternalCall(int durationInMinutes, CallDestination destination)
        {
            var helper = new Helpers.CallHelper();

            return(helper.GetCallCost(destination.Type, durationInMinutes, destination.Name));
        }