public void AddErrorLogTest_good_message_match() { var error = new ErrorLog("AddErrorLogTest_good_message_match"); _logDataProxy.AddErrorLog(error); var logId = error.LogId; Assert.AreEqual(_logsOnlyForTest.GetErrorLogById(logId).msg, "AddErrorLogTest_good_message_match"); _logsOnlyForTest.DeleteErrorLog(logId); _logsOnlyForTest.DeleteLog(logId); }
public void GetNextLogIdTest_good() { var toAdd1 = new ErrorLog("GetNextLogIdTest_good first"); var toAdd1Id = toAdd1.LogId; _logDataProxy.AddErrorLog(toAdd1); var next = _logDataProxy.GetNextLogId(); Assert.AreEqual(next, toAdd1Id + 1); _logsOnlyForTest.DeleteErrorLog(toAdd1Id); _logsOnlyForTest.DeleteLog(toAdd1Id); }