public void ShouldReturnActionThatInvokesSuppliedFunction()
        {
            var expectedResponse = new HttpResponseMessage();

            var actions = new Actions(Dummy.ClientCapabilities);
            var action = actions.Do((r, cl, ct) => expectedResponse);

            Assert.AreEqual(expectedResponse, action.Execute(Dummy.PreviousResponse, Dummy.StateVariables, Dummy.ClientCapabilities));
        }
        public void ShouldReturnSuppliedAction()
        {
            var mockRequestAction = MockRepository.GenerateMock<IRequestAction>();
            mockRequestAction.Expect(a => a.Execute(Dummy.PreviousResponse, Dummy.StateVariables, Dummy.ClientCapabilities));

            var actions = new Actions(Dummy.ClientCapabilities);
            var action = actions.Do(mockRequestAction);

            action.Execute(Dummy.PreviousResponse, Dummy.StateVariables, Dummy.ClientCapabilities);

            mockRequestAction.VerifyAllExpectations();
        }