예제 #1
0
        public void CurrentCorrelation_WithNoActiveCorrelation_ShouldReturnNull()
        {
            Correlation = new Correlation(new MemoryCorrelationHandler(), CallContextManagerInstance, MachineInformation);
            Correlation.CorrelationStart(new CorrelationData());

            while (CallContextManagerInstance.CallContextHandler(MachineInformation).ExistingCallContext() != null)
            {
                CallContextManagerInstance.CallContextHandler(MachineInformation).EndCallContext();
            }

            Assert.Null(Correlation.CurrentCorrelation);
        }
예제 #2
0
        public void TestInitialize()
        {
            CallContextManagerInstance = CreateCallContextManager();
            CallContextManagerInstance.CallContextOverride = new HttpCallContext(useLogicalCallContext: true);

            MachineInformation = new UnitTestMachineInformation();

            HttpCallContext callContext = CallContextManagerInstance.CallContextHandler(MachineInformation) as HttpCallContext;

            callContext.ExistingCallContext();
            callContext.StartCallContext();
        }