コード例 #1
0
 public TaxInformationResponse Process(CustomerSurvey customerSurvey)
 {
     if (customerSurvey.Maritalstatus == MaritalStatus.Married)
     {
         return(_yesDecisionChain.Process(customerSurvey));
     }
     return(_noDecisionChain.Process(customerSurvey));
 }
コード例 #2
0
 public TaxInformationResponse Process(CustomerSurvey customerSurvey)
 {
     if (customerSurvey.Country == "USA")
     {
         return(_yesDecisionChain.Process(customerSurvey));
     }
     return(_noDecisionChain.Process(customerSurvey));
 }
コード例 #3
0
 public TaxInformationResponse Process(CustomerSurvey customerSurvey)
 {
     if (customerSurvey.Salary >= 100000)
     {
         return(_yesDecisionChain.Process(customerSurvey));
     }
     return(_noDecisionChain.Process(customerSurvey));
 }