Ejemplo n.º 1
0
        public void TreeMonData_SystemLogger_DeleteAll()
        {
            LogEntry logEntry = new LogEntry()
            {
                InnerException = "IE",
                Level          = "TEST",
                LogDate        = DateTime.UtcNow,
                Source         = "SystemLoggerTests",
                Type           = "TESTINSERT",
                User           = "******"
            };

            SystemLogger sl = new SystemLogger(connectionKey);

            sl.Insert(logEntry);
            sl.Insert(logEntry);

            int currentCount = sl.GetAll().Count();

            Assert.IsTrue(sl.DeleteAll() > 0);
            Assert.AreNotEqual(currentCount, sl.GetAll().Count());
        }