Sign up as a developer for PayPal and you will gain access to the Sandbox for testing. As to how to integrate with it, it depends which method you want to hook into. Again, the developer section on their site has plenty of examples in .Net for each of the methodologies