Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class testClass () {
  2.  
  3. public void testMethod(OrganizationServiceProxy service) {
  4. service.Timeout = new TimeSpan(0, 15, 0);
  5. }
  6.  
  7. }
  8.  
  9. class testClass () {
  10.  
  11. public void testMethod(IOrganizationService service) {
  12. var serviceProxy = (OrganizationServiceProxy) service; //This breaks when given a fake context
  13. service.Timeout = new TimeSpan(0, 15, 0);
  14. }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement