public void WritingAnAnalyticsMessageToTheDatabaseShouldStoreAnAnalyticsMessage()
 {
     using (var source = new TestLoggingSource())
     {
         var before = source.AnalyticsLogQuery().Count();
         var loggingService = new LoggingService(source);
         loggingService.LogToAnalytics("Test", "AnalyticsTest");
         var after = source.AnalyticsLogQuery().Count();
         Assert.IsTrue(after == before + 1);
     }
 }