Question: Analyst Programmer Code Test We would like you to begin refactoring the AddCustomer method in the CustomerService class in order to make the class easier

Analyst Programmer Code Test

We would like you to begin refactoring the AddCustomer method in the CustomerService class in order to make the class easier to maintain. During the refactoring process you should consider the SOLID principles, how readable the code is and where unit tests might be appropriate.

You can use whatever test frameworks you wish and have one hour to get as far as you can. Were not expecting the work to be finished, but you should have started the work and be able to discuss the changes you have made and what your next steps would be. Please attempt at least some refactoring and unit testing to demonstrate your skills in both.

We are aware that the validation logic isn't perfect but we do not expect you to fix that or make it more comprehensive.

You can change anything (method signatures, constructors etc.) apart from making the CustomerDataAccess class and it methods non static.

Feel free to use the internet to look up anything you need.

In the discussion following we will expect you to explain the changes you have made so far and what your next steps would be.

Your solution MUST build and all the tests MUST pass, we dont look at code that doesnt meet these criteria. We suggest that you try downloading your own zip file - extracting, compiling and running tests in your Downloads directory.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!