コード例 #1
0
 private bool IsCancellationPeriodOver()
 {
     return((Customer.IsGoldCustomer() && LessThan(24)) ||
            !Customer.IsGoldCustomer() && LessThan(48));
 }
コード例 #2
0
 public bool IsCancellatioPeriodOver() =>
 (Customer.IsGoldCustomer() && LessThan(maxHours: 24)) || !Customer.IsGoldCustomer() && LessThan(maxHours: 48);
コード例 #3
0
 private bool IsCancellationPeriodOver()
 {
     return((Customer.IsGoldCustomer() && LessThen(maxHours: 24)) ||
            (!Customer.IsGoldCustomer() && LessThen(maxHours: 48)));
 }
コード例 #4
0
 private bool IsCancellationPeriodOver() =>
 Customer.IsGoldCustomer() && LessThan(24) ||
 !Customer.IsGoldCustomer() && LessThan(48);
コード例 #5
0
        private bool IsCancellationPeriodOver()
        {
            var maxHours = Customer.IsGoldCustomer() ? 24 : 48;

            return(LessThan(maxHours));
        }