Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

1. Who will you assemble on the team?

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago