コード例 #1
0
        internal static ITfsRequestChannelWrapper GetInstance()
        {
            ITfsRequestChannel real = default(ITfsRequestChannel);

            RealInstanceFactory(ref real);
            var instance = (ITfsRequestChannelWrapper)ITfsRequestChannelWrapper.GetWrapper(real);

            InstanceFactory(ref instance);
            if (instance == null)
            {
                Assert.Inconclusive("Could not Create Test Instance");
            }
            return(instance);
        }
 public ITfsRequestChannel CreateChannel(ITfsRequestChannel innerChannel)
 {
     return(null);
 }
コード例 #3
0
 static partial void RealInstanceFactory(ref ITfsRequestChannel real, [CallerMemberName] string callerName        = "");
コード例 #4
0
 static partial void RealInstanceFactory(ref ITfsRequestChannel real, string callerName)
 {
     real = new TemporaryMock();
 }