Exception handling in TDD - Re factor the code

 

Add a New Method in our Test to handle Null Excetion

 

 

 

Change Service Logic to handle Null Argument

 

 

Move Common DI above with in constructor

Change reference in both method below to use Global  service/processor

 

Run your Test 

 


Related Question