Put the API in an seperate library assembly and create an assembly for testing.