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()); }
public void TreeMonData_SystemLogger_Insert() { LogEntry logEntry = new LogEntry() { InnerException = "IE", Level = "TEST", LogDate = DateTime.UtcNow, Source = "SystemLoggerTests", Type = "TESTINSERT", User = "******" }; SystemLogger sl = new SystemLogger(connectionKey); Assert.IsTrue(sl.Insert(logEntry)); Assert.IsNotNull(sl.Get(logEntry.Id)); }