public void BeginTest()
 {
     repo                = new MockRepository();
     channelFactory      = repo.StrictMock <ICanCreateChannels <IService> >();
     communicationObject = repo.StrictMultiMock <ICommunicationObject>(typeof(IService));
     manager             = new SingleActionChannelManager <IService>(channelFactory);
 }
 public void BeginTest()
 {
     repo = new MockRepository();
     channelFactory = repo.StrictMock<ICanCreateChannels<IService>>();
     communicationObject = repo.StrictMultiMock<ICommunicationObject>(typeof(IService));
     manager = new SingleActionChannelManager<IService>(channelFactory);
 }
      public void DummyService_WithProxyChannel_ReturnNull()
      {
         Binding binding = new BasicHttpBinding();
         EndpointAddress address = new EndpointAddress("http://localhost:8733/DummyService/");

         var channelFactory = new ChannelFactory<IDummyService>(binding, address);
         ICanCreateChannels<IDummyService> channelCreator = new ChannelCreator<IDummyService>(channelFactory);
         IChannelManager<IDummyService> channelManager = new SingleActionChannelManager<IDummyService>(channelCreator);

         var proxy = new DummyProxyChannel(channelManager);

         proxy.Execute("ReturnNull", null, Type.EmptyTypes);

      }