public CustomerController() { _customerName = new CustomerNameValidator(); _consoleHelper = new ConsoleHelper(); _customerAddress = new CustomerAddressValidator(); _customerCity = new CustomerCityValidator(); _customerState = new CustomerStateValidator(); _customerZip = new CustomerZipValidator(); _customerPhone = new CustomerPhoneValidator(); }
public CustomerController(ICustomerNameValidation nameValidator, IConsoleHelper consoleHelper, ICustomerAddressValidation addressValidator, ICustomerCityValidation cityValidator, ICustomerStateValidation stateValidator, ICustomerZipValidation zipValidator, ICustomerPhoneValidation phoneValidator) { _customerName = nameValidator; _consoleHelper = consoleHelper; _customerAddress = addressValidator; _customerCity = cityValidator; _customerState = stateValidator; _customerZip = zipValidator; _customerPhone = phoneValidator; }