public void ThisIsATest() { using (var client = new MyServiceClient()) client.DoStuff(); // test whatever }