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));
 }