public void AnatomyManager_DeleteAnatomyTag() { AnatomyManager m = new AnatomyManager(new TreeMonDbContext(connectionKey)); AnatomyTag s = new AnatomyTag() { AccountId = "a", Name = "DELETERECORD", CreatedBy = "TESTUSER", DateCreated = DateTime.UtcNow }; m.Insert(s); //Test the delete flag Assert.IsTrue(m.DeleteAnatomyTag(s) > 0); m.GetAnatomyTag("DELETERECORD"); AnatomyTag d = m.GetAnatomyTag("DELETERECORD"); Assert.IsNotNull(d); Assert.IsTrue(d.Deleted == true); Assert.IsTrue(m.DeleteAnatomyTag(s, true) > 0); d = m.GetAnatomyTag("DELETERECORD"); Assert.IsNull(d); }