public void UpdateEventFrame() { AFEventFrame frame = GenerateFrame(DateTime.UtcNow, null); _db.CreateEventFrame(frame); frame = _db.EventFrames[frame.Name]; Assert.IsNotNull(frame, "Assert frame exists in AFDB frame list"); Assert.Equals(frame.Name, frame.Name); Assert.Equals(frame.Description, frame.Description); Assert.Equals(frame.StartTime, frame.StartTime); Assert.IsNull(frame.EndTime, "Assert EndTime is null."); frame.EndTime = DateTime.UtcNow.AddMinutes(5); frame.Name += " (Updated)"; Assert.IsTrue(frame.IsDirty); frame.CheckIn(); frame.Delete(); Assert.IsTrue(frame.IsDeleted); frame.CheckIn(); AFEventFrame temp = AFEventFrame.Find(_conn, frame.WebID); Assert.IsNull(temp); }