Exemple #1
0
        public void ToggleComplete()
        {
            Complaint complaint = new Complaint()
            {
                ID = 1, Contents = "Test Complaint", Completed = false, Create = DateTime.Now
            };

            ComplaintRepo.AddComplaint(complaint);

            ComplaintRepo.MarkComplete(complaint);

            Assert.True(ComplaintRepo.GetClosedComplaints().Count == 1);
            // Cleanup
            Context.Database.EnsureDeleted();
        }