示例#1
0
 protected override void Before_each_spec()
 {
    _filter = Mock<IChannelFilter>();
    _invocation = Mock<CastleInterception.IInvocation>();
    _transPort = Mock<ITransport>();
    _theUnit = new ChannelIntercept(_transPort);
    _theUnit.PreFilters = new List<IChannelFilter>();
    _theUnit.PostFilters = new List<IChannelFilter>();
 }
示例#2
0
      protected override void Before_each_spec()
      {
         _invocation = Mock<CastleInterception.IInvocation>();
         _proxyMethod = ObjectMother.GetMethodInfo();

         _theUnit = new ComposeRequestFilter();

         //Note just for coverage
         _theUnit.ChannelResponse = new ChannelResponse();
         ChannelResponse response = _theUnit.ChannelResponse;
      }
示例#3
0
      protected override void Before_each_spec()
      {
         _invocation = Mock<CastleInterception.IInvocation>();

         _theUnit = new SerializeRequestFilter();

         //Note just for coverage
         _theUnit.ChannelResponse = new ChannelResponse();
         ChannelResponse response = _theUnit.ChannelResponse;
      }
示例#4
0
      protected override void Before_each_spec()
      {
         _invocation = Mock<CastleInterception.IInvocation>();
         _credentialsProvider = Mock<ICredentialsProvider>();

         _theUnit = new RequestCredentialsFilter();
         _theUnit.CredentialsProvider = _credentialsProvider;

         //Note just for coverage
         _theUnit.ChannelResponse = new ChannelResponse();
         ChannelResponse response = _theUnit.ChannelResponse;
      }
示例#5
0
      protected override void Before_each_spec()
      {
         _invocation = Mock<CastleInterception.IInvocation>();

         _theUnit = new InvocationReturnFilter();

         //For coverage only
         _theUnit.ChannelRequest = new ChannelRequest();
         ChannelRequest dummy = _theUnit.ChannelRequest;
      }