public TaxInformationResponse Process(CustomerSurvey customerSurvey) { if (customerSurvey.Maritalstatus == MaritalStatus.Married) { return(_yesDecisionChain.Process(customerSurvey)); } return(_noDecisionChain.Process(customerSurvey)); }
public TaxInformationResponse Process(CustomerSurvey customerSurvey) { if (customerSurvey.Country == "USA") { return(_yesDecisionChain.Process(customerSurvey)); } return(_noDecisionChain.Process(customerSurvey)); }
public TaxInformationResponse Process(CustomerSurvey customerSurvey) { if (customerSurvey.Salary >= 100000) { return(_yesDecisionChain.Process(customerSurvey)); } return(_noDecisionChain.Process(customerSurvey)); }