public void DeleteComplaintByID() { Complaint complaint = new Complaint() { ID = 1, Contents = "Test Complaint", Completed = false, Create = DateTime.Now }; ComplaintRepo.AddComplaint(complaint); ComplaintRepo.DeleteComplaintByID(1); Assert.True(ComplaintRepo.Complaints.Count == 0); // Cleanup Context.Database.EnsureDeleted(); }