Ejemplo n.º 1
0
        public void Request_UnitTest()
        {
            ITfsMessage message = default(ITfsMessage);

            ExecuteMethod(
                () => { return((IITfsRequestChannel)GetInstance()); },
                instance =>
            {
                message = TfsMessageImpl_UnitTests.GetInstance();
                Request_PreCondition(instance, ref message);
            },
                instance => { instance.Request(message); },
                instance => { Request_PostValidate(instance, message); });
        }
Ejemplo n.º 2
0
        public void BeginRequest_UnitTest()
        {
            ITfsMessage   message  = default(ITfsMessage);
            AsyncCallback callback = default(AsyncCallback);
            Object        state    = default(Object);

            ExecuteMethod(
                () => { return((IITfsRequestChannel)GetInstance()); },
                instance =>
            {
                message  = TfsMessageImpl_UnitTests.GetInstance();
                callback = default(AsyncCallback);     //No Constructor
                state    = new Object();
                BeginRequest_PreCondition(instance, ref message, ref callback, ref state);
            },
                instance => { instance.BeginRequest(message, callback, state); },
                instance => { BeginRequest_PostValidate(instance, message, callback, state); });
        }