public void SetUpAttribute()
        {
            var mockMetadataDeserializer = new Mock <MetadataDeserializer>(MockBehavior.Default, null, null, null, null,
                                                                           null);

            mockMetadataDeserializer.Setup(mmd => mmd.DeserializeAllMetadataAndCacheIt(It.IsAny <Stream>()));
            Mock <ICallTreeFactory <StubCallTree> > mockTreeFactory = MockTreeFactory();

            _profilerCommunicator = new ProfilerCommunicator <StubCallTree>(
                ProfilerTypes.TracingProfiler,
                mockTreeFactory.Object,
                mockMetadataDeserializer.Object,
                _mockMethodCache.Object,
                UpdateCallback);
        }
        public void SetUpAttribute()
        {
            var mockMetadataDeserializer = new Mock<MetadataDeserializer>(MockBehavior.Default, null, null, null, null,
                                                                          null);
            mockMetadataDeserializer.Setup(mmd => mmd.DeserializeAllMetadataAndCacheIt(It.IsAny<Stream>()));
            Mock<ICallTreeFactory<StubCallTree>> mockTreeFactory = MockTreeFactory();

            _profilerCommunicator = new ProfilerCommunicator<StubCallTree>(
                ProfilerTypes.TracingProfiler,
                mockTreeFactory.Object,
                mockMetadataDeserializer.Object,
                _mockMethodCache.Object,
                UpdateCallback);
        }