public void LogMethodCall_CachedLogEntryFoundInLog_ModifiesCachedLogEntryInLog()
        {
            InMemoryCacheServiceLogger.ClearLog();

            var logger  = new InMemoryCacheServiceLogger();
            var service = new FooService();

            logger.LogMethodCall(false, () => service.GetFoo());
            logger.LogMethodCall(true, () => service.GetFoo());

            Assert.That(InMemoryCacheServiceLogger.Log.Count, Is.EqualTo(1));
            Assert.That(InMemoryCacheServiceLogger.Log[0].Calls, Is.EqualTo(2));
            Assert.That(InMemoryCacheServiceLogger.Log[0].CachedCalls, Is.EqualTo(1));
        }
        public void LogMethodCall_CachedLogEntryNotFoundInLog_AddsNewCachedLogEntryToLog()
        {
            InMemoryCacheServiceLogger.ClearLog();

            var logger  = new InMemoryCacheServiceLogger();
            var service = new FooService();

            logger.LogMethodCall(false, () => service.GetFoo());

            Assert.That(InMemoryCacheServiceLogger.Log.Count, Is.EqualTo(1));
            Assert.That(InMemoryCacheServiceLogger.Log[0].UniqueId, Is.EqualTo("SpotiKat.Caching.Tests.Logging.InMemoryCacheServiceLoggerTests LogMethodCall_CachedLogEntryNotFoundInLog_AddsNewCachedLogEntryToLog"));
            Assert.That(InMemoryCacheServiceLogger.Log[0].Calls, Is.EqualTo(1));
        }