-
Notifications
You must be signed in to change notification settings - Fork 20
Refactor Search Control Ontology
Sherry edited this page Aug 10, 2017
·
2 revisions
Refactoring
For this example we will be using SearchControl.cs
To refactor a method we need to Plan:
-
remove dependencies on internal variables of the form
- pass in paramters to the method
- create objects to simplfy the parameter list (and validation and testing)
-
remove calls to message box and user interface
- replace with
- Events
- or Exceptions that should be caught
- replace with
-
Create one or more specific exceptions