how to test untestable code - C#