HttpCalls.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // MonoTests.Remoting.HttpCalls.cs
  3. //
  4. // Author: Lluis Sanchez Gual ([email protected])
  5. //
  6. // 2003 (C) Copyright, Ximian, Inc.
  7. //
  8. using System;
  9. using System.Runtime.Remoting;
  10. using System.Runtime.Remoting.Channels;
  11. using System.Runtime.Remoting.Channels.Http;
  12. using NUnit.Framework;
  13. namespace MonoTests.Remoting
  14. {
  15. [TestFixture]
  16. public class HttpSyncCallTest : SyncCallTest
  17. {
  18. public override ChannelManager CreateChannelManager ()
  19. {
  20. return new HttpChannelManager ();
  21. }
  22. }
  23. [TestFixture]
  24. public class HttpAsyncCallTest : AsyncCallTest
  25. {
  26. public override ChannelManager CreateChannelManager ()
  27. {
  28. return new HttpChannelManager ();
  29. }
  30. }
  31. [TestFixture]
  32. public class HttpReflectionCallTest : ReflectionCallTest
  33. {
  34. public override ChannelManager CreateChannelManager ()
  35. {
  36. return new HttpChannelManager ();
  37. }
  38. }
  39. [TestFixture]
  40. public class HttpDelegateCallTest : DelegateCallTest
  41. {
  42. public override ChannelManager CreateChannelManager ()
  43. {
  44. return new HttpChannelManager ();
  45. }
  46. }
  47. [Serializable]
  48. public class HttpChannelManager : ChannelManager
  49. {
  50. public override IChannelSender CreateClientChannel ()
  51. {
  52. return new HttpChannel ();
  53. }
  54. public override IChannelReceiver CreateServerChannel ()
  55. {
  56. return new HttpChannel (0);
  57. }
  58. }
  59. }