public void GetCounterName()
        {
            //given
            var m = _provider.Register(AppPoolName, "w3wp#1");

            //when
            string instanceName = _cache.GetCounterInstanceName(AppPoolName);

            //then
            Assert.Equal(m.InstanceName, instanceName);
        }
        public void ReportValue_Retrieves_a_value()
        {
            //given
            var             m        = _counterInstanceNameProvider.Register("test", "w3wp#1");
            AppPoolListener listener = CreateAppPoolListener(m.PoolName, "Process", "Working Set");

            //when
            var value = listener.ReportValue();

            //then
            Assert.True(_counterFactory.CreatedCounters.All(p => p.CategoryName == listener.CategoryName && p.CounterName == listener.Counter && p.InstanceName == m.InstanceName));
        }