public void SymptomManager_DeleteSymptomLog() { SymptomManager m = new SymptomManager(new TreeMonDbContext(connectionKey)); SymptomLog s = new SymptomLog() { AccountId = "a", Name = "DELETERECORD", CreatedBy = "TESTUSER", DateCreated = DateTime.UtcNow, DoseUUID = "D" }; m.InsertLog(s); //Test the delete flag Assert.IsTrue(m.DeleteSymptomLog(s) > 0); m.GetSymptomLog("DELETERECORD"); SymptomLog d = m.GetSymptomLog("DELETERECORD"); Assert.IsNotNull(d); Assert.IsTrue(d.Deleted == true); Assert.IsTrue(m.DeleteSymptomLog(s, true) > 0); d = m.GetSymptomLog("DELETERECORD"); Assert.IsNull(d); }